Config command created - config show started

This commit is contained in:
Simon Aquino
2014-08-04 00:12:09 +00:00
parent 972e8c1373
commit 192152b215
3 changed files with 50 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
package cmd
import "fmt"
import "github.com/smira/commander"
func aptlyConfigShow(cmd *commander.Command, args []string) error {
config := context.Config()
fmt.Printf("RootDir: %s")
return nil
}
func makeCmdConfigShow() *commander.Command {
cmd := &commander.Command{
Run: aptlyConfigShow,
UsageLine: "show",
Short: "show current aptly's config",
Long: `
Command show displays the current aptly configuration.
Example:
$ aptly config show
`,
}
return cmd
}