- Timestamp:
- May 7, 2023, 1:59:02 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmd/aya/main.go
r64 r65 1 // $TheSupernovaDuo: cmd/aya/main.go,v 0.5.x 2023/ 4/26 8:49:6yakumo_izuru Exp $1 // $TheSupernovaDuo: cmd/aya/main.go,v 0.5.x 2023/5/7 10:57:10 yakumo_izuru Exp $ 2 2 package main 3 3 … … 301 301 return err 302 302 } 303 303 // This function passes the files to build to their corresponding functions 304 304 func build(path string, w io.Writer, vars Vars) error { 305 305 ext := filepath.Ext(path) … … 368 368 log.Fatal(http.ListenAndServe(":8000", nil)) 369 369 } 370 370 // Initialize the environment 371 371 func init() { 372 372 // prepend .aya to $PATH, so plugins will be found before OS commands … … 375 375 os.Setenv("PATH", p) 376 376 } 377 377 // Print usage notes 378 378 func printUsage() { 379 379 fmt.Printf("%v <command> [args]\n", os.Args[0])
Note:
See TracChangeset
for help on using the changeset viewer.