Skip to content

Commit

Permalink
chore: improve CLI of hugomanager
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Sep 8, 2024
1 parent 73523b1 commit 7c94ffc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions src/wp2hugo/cmd/hugomanager/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ var (
userLicense string

rootCmd = &cobra.Command{
Use: "cobra-cli",
Short: "A generator for Cobra based Applications",
Long: `Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Use: "hugomanager",
Short: "A tool for managing Hugo sites",
Long: "A tool for managing Hugo sites e.g. adding URL suggestions, generating site status summary etc.",
}
)

Expand Down
4 changes: 2 additions & 2 deletions src/wp2hugo/cmd/hugomanager/cmd/urlsuggest.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ var (

var urlSuggestCmd = &cobra.Command{
Use: "urlsuggest",
Short: "Suggests URLs for all the posts that are missing one",
Long: "Suggests URLs for all the posts that are missing one",
Short: "Suggests URLs for all the pending/future posts that are missing a URL",
Long: "Suggests URLs for all the pending/future posts that are missing a URL",
Run: func(cmd *cobra.Command, args []string) {
log.Info().Msg("URL Suggest command called")
logger.ConfigureLogging(ColorLogOutput)
Expand Down
2 changes: 1 addition & 1 deletion src/wp2hugo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ require (
github.com/PuerkitoBio/goquery v1.9.2
github.com/adrg/frontmatter v0.2.0
github.com/go-enry/go-enry/v2 v2.8.9
github.com/mergestat/timediff v0.0.3
github.com/mmcdole/gofeed v1.3.0
github.com/rs/zerolog v1.33.0
github.com/stretchr/testify v1.9.0
Expand All @@ -18,7 +19,6 @@ require (
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mergestat/timediff v0.0.3 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
Expand Down

0 comments on commit 7c94ffc

Please sign in to comment.