first alpha version cli

This commit is contained in:
2025-05-10 21:52:52 +02:00
parent f791b7085c
commit 2380a36271
8 changed files with 275 additions and 12 deletions

View File

@@ -20,17 +20,17 @@ type (
}
)
func (RunCmd) Name() string { return "run" }
func (RunCmd) Synopsis() string { return "Check and process all the folder" }
func (RunCmd) Usage() string {
func (*RunCmd) Name() string { return "run" }
func (*RunCmd) Synopsis() string { return "Check and process all the folder" }
func (*RunCmd) Usage() string {
return `run:
Check and process all the folder
`
}
func (p RunCmd) SetFlags(f *flag.FlagSet) {}
func (p *RunCmd) SetFlags(f *flag.FlagSet) {}
func (p RunCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus {
func (p *RunCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus {
datastore, err := game.All()
if err != nil {
fmt.Fprintln(os.Stderr, "error: failed to load datastore:", err)