Changeset 78 in code for trunk


Ignore:
Timestamp:
Dec 10, 2023, 11:57:40 PM (18 months ago)
Author:
Izuru Yakumo
Message:

Just a documentation update

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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/aya/main.go

    r77 r78  
    1 // $TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v0.6.8 2023-12-04 15:43:44+0000, yakumo_izuru Exp $
     1// $TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v0.6.9 2023-12-09 23:30:07+0000, yakumo_izuru Exp $
    22package main
    33
     
    200200}
    201201
    202 // Renders text file expanding all variable macros inside it
     202// Renders hypertext file expanding all variable macros inside it
    203203func buildHTML(path string, w io.Writer, vars Vars) error {
    204204        v, body, err := getVars(path, vars)
     
    403403                aya.PrintUsage()
    404404        case "serve":
    405                 aya.HttpServe(PUBDIR)
     405                aya.HttpServe(PUBDIR, 8000)
    406406        case "var":
    407407                if len(args) == 0 {
  • trunk/serve.go

    r73 r78  
    3030}
    3131
    32 func HttpServe(Dir string) {
     32// This function is called by the `aya serve` subcommand
     33func HttpServe(Dir string, Port int) {
    3334        handler := &Handler{http.FileServer(http.Dir(Dir))}
    3435        http.Handle("/", handler)
    35         addr := fmt.Sprintf(":%d", 8000)
     36        addr := fmt.Sprintf(":%d", Port)
    3637        log.Printf("Listening on %s\n", addr)
    3738        log.Fatal(http.ListenAndServe(addr, nil))
  • trunk/usage.go

    r76 r78  
    55)
    66
     7// This function is called by the `aya help` subcommand
    78func PrintUsage() {
    89        fmt.Printf("aya/%v\n", FullVersion())
  • trunk/version.go

    r77 r78  
    99var (
    1010        // Set to current tag
    11         Version = "v0.6.8"
     11        Version = "v0.6.9"
    1212        Time = time.Now()
    1313)
Note: See TracChangeset for help on using the changeset viewer.