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: 4

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
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