1 files changed,
16 insertions(+),
0 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-09-04 20:08:44 +0300
Authored at:
2026-08-21 16:23:07 +0300
Change ID:
olykstqrknzxsqrllpsqlurksmklyyuw
Parent:
942596e
M
internal/cli/cli.go
··· 2 2 3 3 import ( 4 4 "context" 5 + "fmt" 6 + "os" 5 7 6 8 "github.com/urfave/cli/v3" 7 9 ) ··· 21 23 Name: "clerk", 22 24 Usage: "missing pta tooling", 23 25 Version: c.version, 26 + HideVersion: true, 24 27 EnableShellCompletion: true, 25 28 Flags: []cli.Flag{ 26 29 &cli.StringFlag{ ··· 91 94 Min: 0, 92 95 Max: -1, 93 96 }}, 97 + }, 98 + { 99 + Name: "help", 100 + Usage: "Show help", 101 + Action: func(ctx context.Context, cmd *cli.Command) error { return cli.ShowAppHelp(cmd) }, 102 + }, 103 + { 104 + Name: "version", 105 + Usage: "Print clerk version", 106 + Action: func(ctx context.Context, cmd *cli.Command) error { 107 + fmt.Fprintf(os.Stdout, "clerk version %s", c.version) 108 + return nil 109 + }, 94 110 }, 95 111 }, 96 112 }