Skip to content

Commit

Permalink
Merge pull request #2 from PinataCloud/chore/refactor-help-output
Browse files Browse the repository at this point in the history
chore: Updated some of the help outputs for commands
  • Loading branch information
stevedylandev authored Oct 9, 2024
2 parents 7940cca + 26beb71 commit 8cf233a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
{
Name: "upload",
Aliases: []string{"u"},
Usage: "Upload a file or folder to Pinata",
Usage: "Upload a file to Pinata",
ArgsUsage: "[path to file]",
Flags: []cli.Flag{
&cli.StringFlag{
Expand Down Expand Up @@ -69,9 +69,10 @@ func main() {
Usage: "Interact with file groups",
Subcommands: []*cli.Command{
{
Name: "create",
Aliases: []string{"c"},
Usage: "Create a new group",
Name: "create",
Aliases: []string{"c"},
Usage: "Create a new group",
ArgsUsage: "[name of group]",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "public",
Expand Down Expand Up @@ -265,7 +266,7 @@ func main() {
&cli.StringFlag{
Name: "amount",
Aliases: []string{"a"},
Usage: "The number of files you would like to return, default 10 max 1000",
Usage: "The number of files you would like to return",
},
&cli.StringFlag{
Name: "token",
Expand Down Expand Up @@ -315,7 +316,7 @@ func main() {
Name: "sign",
Aliases: []string{"s"},
Usage: "Get a signed URL for a file by CID",
ArgsUsage: "[cid of the file, number of seconds the url is valid for]",
ArgsUsage: "[cid of the file, seconds the url is valid for]",
Action: func(ctx *cli.Context) error {
cid := ctx.Args().First()
if cid == "" {
Expand Down

0 comments on commit 8cf233a

Please sign in to comment.