Mercurial > hg > Members > anatofuz > growsync
view cmd_root.go @ 9:11ceb718f9f6
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Dec 2020 16:10:38 +0900 |
parents | 3032e9f78e4b |
children |
line wrap: on
line source
package growsync import ( "context" "fmt" "io" ) type rootCmd struct{} func (pc *rootCmd) name() string { return "root" } func (pc *rootCmd) description() string { return "show document root" } func (pc *rootCmd) run(ctx context.Context, args []string, config *growiConfig, outputWriter io.Writer, errorWriter io.Writer) error { fmt.Fprintln(outputWriter, config.LocalRoot) return nil }