Documentation
¶
Index ¶
- Constants
- Variables
- func BeforeActionLoadConfiguration(context *cli.Context) error
- func BeforeInstallAction(context *cli.Context) error
- func GoAction(context *cli.Context) error
- func InstallAction(*cli.Context) error
- func ListAction(*cli.Context) error
- func SetupAction(*cli.Context) error
- func UpdateAction(*cli.Context) error
Constants ¶
View Source
const ( BaseFolderArg = "basefolder" ConfigArg = "config" )
Variables ¶
View Source
var ( SetupFolder string SetupCmd = &cli.Command{ Name: "setup", Usage: "Setup configuration for folder", Flags: []cli.Flag{ &cli.StringFlag{ Name: folderArg, Aliases: []string{"f"}, Value: configuration.CurrentDir(), Usage: "Folder", Destination: &SetupFolder, }, &cli.BoolFlag{ Name: enableArg, Destination: &setupEnable, Usage: "Enable folder", }, &cli.BoolFlag{ Name: disableArg, Destination: &setupDisable, Usage: "Disable folder", }, &cli.BoolFlag{ Name: disableSubFolders, Destination: &setupDisableSubs, Usage: "Disable all sub folders", }, }, Action: SetupAction, Before: BeforeActionLoadConfiguration, } )
View Source
var ( GoCmd = &cli.Command{ Name: "go", Usage: "Go to folder", ArgsUsage: "[words for locate the folders]", Action: GoAction, Before: BeforeActionLoadConfiguration, Flags: []cli.Flag{ &cli.BoolFlag{ Name: "just-cd", Destination: &justCD, Usage: "Just go to folder, skip custom command", }, &cli.BoolFlag{ Name: "open", Destination: &openFolder, Usage: "Opens folder into file browser", }, }, } )
View Source
var ( InstallCmd = &cli.Command{ Name: "install", Usage: "Install go-dev", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "uninstall", Usage: "Remove installation", Destination: &installRemove, }, &cli.PathFlag{ Name: BaseFolderArg, Usage: "Development base folder", Value: configuration.DefaultDevFolder, Destination: &devBaseFolder, }, &cli.IntFlag{ Name: "max-path-level", Usage: "Maximum level of paths", Value: configuration.MaximumSubLevel, Destination: &configuration.MaxFolderLevel, }, }, Action: InstallAction, Before: BeforeInstallAction, } )
View Source
var ( ListCmd = &cli.Command{ Name: "list", Usage: "List folders", Action: ListAction, Before: BeforeActionLoadConfiguration, } )
View Source
var ( UpdateCmd = &cli.Command{ Name: "update", Usage: "Update folders", Action: UpdateAction, Before: BeforeActionLoadConfiguration, Flags: []cli.Flag{ &cli.IntFlag{ Name: "max-path-level", Usage: "Maximum level of paths", Value: configuration.MaximumSubLevel, Destination: &configuration.MaxFolderLevel, }, }, } )
Functions ¶
func BeforeActionLoadConfiguration ¶ added in v0.2.0
func BeforeInstallAction ¶
func InstallAction ¶
func ListAction ¶
func SetupAction ¶
func UpdateAction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.