Mercurial > hg > Members > anatofuz > growsync
view cmd_root.go @ 14:1e21b0c29775
remove create page msg
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 Dec 2020 11:12:04 +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 }