Changeset 65 in code for trunk/cmd


Ignore:
Timestamp:
May 7, 2023, 1:59:02 PM (2 years ago)
Author:
Izuru Yakumo
Message:

Update documentation

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

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:6 yakumo_izuru Exp $
     1// $TheSupernovaDuo: cmd/aya/main.go,v 0.5.x 2023/5/7 10:57:10 yakumo_izuru Exp $
    22package main
    33
     
    301301        return err
    302302}
    303 
     303// This function passes the files to build to their corresponding functions
    304304func build(path string, w io.Writer, vars Vars) error {
    305305        ext := filepath.Ext(path)
     
    368368        log.Fatal(http.ListenAndServe(":8000", nil))
    369369}
    370 
     370// Initialize the environment
    371371func init() {
    372372        // prepend .aya to $PATH, so plugins will be found before OS commands
     
    375375        os.Setenv("PATH", p)
    376376}
    377 
     377// Print usage notes
    378378func printUsage() {
    379379        fmt.Printf("%v <command> [args]\n", os.Args[0])
Note: See TracChangeset for help on using the changeset viewer.