Mercurial > hg > Members > anatofuz > growsync
view cmd_root.go @ 15:0dc44ee170b4
mkdir
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 03 Jan 2021 08:46:08 +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 }