Mercurial > hg > Members > anatofuz > growsync
annotate 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 |
rev | line source |
---|---|
1 | 1 package growsync |
2 | |
3 import ( | |
4 "context" | |
3 | 5 "fmt" |
1 | 6 "io" |
7 ) | |
8 | |
9 type rootCmd struct{} | |
10 | |
11 func (pc *rootCmd) name() string { | |
12 return "root" | |
13 } | |
14 | |
15 func (pc *rootCmd) description() string { | |
3 | 16 return "show document root" |
1 | 17 } |
18 | |
3 | 19 func (pc *rootCmd) run(ctx context.Context, args []string, config *growiConfig, outputWriter io.Writer, errorWriter io.Writer) error { |
20 fmt.Fprintln(outputWriter, config.LocalRoot) | |
1 | 21 return nil |
22 } |