- Timestamp:
- Apr 18, 2023, 12:29:12 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmd/aya/main.go
r58 r59 6 6 "io" 7 7 "io/ioutil" 8 "log"9 8 "os" 10 9 "os/exec" … … 17 16 "gopkg.in/yaml.v2" 18 17 "marisa.chaotic.ninja/aya" 18 log "github.com/sirupsen/logrus" 19 19 ) 20 20 … … 304 304 } 305 305 306 func printUsage() { 307 fmt.Printf("%v <command> [args]\n", os.Args[0]) 308 fmt.Printf("\n") 309 fmt.Printf("Where <command> is:\n") 310 fmt.Printf("\tbuild\tGenerate site\n") 311 fmt.Printf("\twatch\t(Re)generate site while looking for changes\n") 312 fmt.Printf("\tvar\tQuery a variable from a markdown file\n") 313 fmt.Printf("\tversion\tPrint version and exit\n") 314 fmt.Printf("\n") 315 fmt.Printf("Other commands may be dynamically added by plugins found in %v\n", AYADIR) 316 os.Exit(0) 317 } 318 306 319 func main() { 307 320 if len(os.Args) == 1 { 308 fmt.Println(os.Args[0], "<command> [args]") 309 return 321 printUsage() 310 322 } 311 323 cmd := os.Args[1]
Note:
See TracChangeset
for help on using the changeset viewer.