Ayi

package module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2018 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Ayi

GoDoc Build Status

Ayi organizes your workspace

Installation

Pre-built binary

  • Download from releases
  • NOTE: Mac and Windows are no longer tested

Build from source (recommended)

  • go 1.9+ & dep
  • dep ensure
  • make install

Usage

ayi help

Contribute

See directory layout and dev

About

Ayi is the nick name of a @dyweb member

Documentation

Overview

Package Ayi defines interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apps

func Apps() []string

func RegisterAppFactory

func RegisterAppFactory(name string, factory AppFactory)

Types

type App

type App interface {
	CobraCommand() *cobra.Command
}

func CreateApp

func CreateApp(name string, r Registry) (App, error)

type AppFactory

type AppFactory func(Registry) (App, error)

type Registry added in v0.2.1

type Registry interface {
	// config
	// ~/.ayi.yml
	HasHomeConfig() bool
	HomeConfig() config.AyiConfig
}

Registry is used to pass configuration and share states between apps

Directories

Path Synopsis
app
dep
git
web
cmd
ayi command
Package config contains config of all apps.
Package config contains config of all apps.
util

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL