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] -
trunk/go.mod
r56 r59 5 5 require ( 6 6 github.com/russross/blackfriday/v2 v2.1.0 7 github.com/sirupsen/logrus v1.9.0 7 8 gopkg.in/yaml.v2 v2.4.0 8 9 ) 10 11 require golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect -
trunk/go.sum
r48 r59 1 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 2 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 3 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 4 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 5 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 1 6 github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= 2 7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 8 github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= 9 github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= 10 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 11 github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= 12 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 13 golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= 14 golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 3 15 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 4 16 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 5 17 gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 6 18 gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 19 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= 20 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Note:
See TracChangeset
for help on using the changeset viewer.