Skip to content

Commit

Permalink
feat: configre gui logging via file
Browse files Browse the repository at this point in the history
Signed-off-by: Rachel Powers <[email protected]>
  • Loading branch information
Ryex committed Sep 29, 2024
1 parent 4ae2473 commit 507a73d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/dungeondraft-packager-cli/dungeondraft-packager-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ func main() {
kong.UsageOnError(),
kong.ConfigureHelp(
kong.HelpOptions{
Compact: true,
Compact: false,
Summary: true,
Tree: false,
}),
kong.Bind(ctx),
)
Expand Down
10 changes: 9 additions & 1 deletion cmd/dungeondraft-packager/dungeondraft-packager.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,21 @@ var CLI struct {

func main() {
kong.Parse(&CLI,
kong.Configuration(kong.JSON, "./dd-gopackager.json", "~/.config/dd-gopackager.json"),
kong.Name("dungeondraft-packager"),
kong.Description("Pack, Unpack, Edit, and Prepare resources for .dungeondraft_pack files"),
kong.Description(
"Pack, Unpack, Edit, and Prepare resources for .dungeondraft_pack files\n\n"+
"log file and level can also be configured from a file.\n"+
"the first of the folowing will be loaded:\n"+
"\t./dd-gopackager.json\n"+
"\t~/.config/dd-gopackager.json",
),
kong.UsageOnError(),
kong.ConfigureHelp(
kong.HelpOptions{
Compact: true,
Summary: true,
Tree: true,
}),
// vars
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

type ListCmd struct {
Files ListFilesCmd `cmd:"" help:"lists files in the pack"`
Tags ListTagsCmd `cmd:"" help:"lists all tags that match the provided resource patterns, with no patterns lists all tags"`
Tags ListTagsCmd `cmd:"" help:"lists all tags that match the provided resource patterns. with no patterns lists all tags"`
}

type ListFilesCmd struct {
Expand Down

0 comments on commit 507a73d

Please sign in to comment.