Skip to content

Commit 4ec8db1

Browse files
RevanthTanneerumohammed786
authored andcommitted
Updated descriptions of commands and flags (#58)
1 parent af25270 commit 4ec8db1

42 files changed

Lines changed: 85 additions & 78 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/add/account/account.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func NewaccountCmd() *cobra.Command {
4141
opts.Email = append(opts.Email, *EmailObj)
4242
cmd := &cobra.Command{
4343
Use: "account",
44-
Short: "add account",
45-
Long: `This commmand adds account`,
44+
Short: "Adds an account",
45+
Long: `Use this command to add a user to your application.`,
4646
Example: heredoc.Doc(`$ lr add account --name <name> --email <email>
4747
User Account successfully created
4848
First name: <first name>
@@ -60,8 +60,8 @@ func NewaccountCmd() *cobra.Command {
6060
}
6161

6262
fl := cmd.Flags()
63-
fl.StringVarP(&opts.Email[0].Value, "email", "e", "", "emailID")
64-
fl.StringVarP(&opts.FirstName, "name", "n", "", "first name")
63+
fl.StringVarP(&opts.Email[0].Value, "email", "e", "", "Email id of the user you want to add")
64+
fl.StringVarP(&opts.FirstName, "name", "n", "", "First name of the user")
6565
fl.Lookup("name").NoOptDefVal = ""
6666
return cmd
6767
}

cmd/add/customField/customFields.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func NewAddCFCmd() *cobra.Command {
2020
cmd := &cobra.Command{
2121
Use: "custom-field",
2222
Short: "Add the custom field which can be used in a registeration schema",
23-
Long: `This command allows you to add upto 5 custom fields to your IDX Page.`,
23+
Long: `Use this command to add up to 5 custom fields to your Auth Page(IDX).`,
2424
Example: heredoc.Doc(`$ lr add custom-field -f MyCustomField
2525
MyCustomField is successfully add as your customfields
2626
You can now add the custom field in your registration schema using "lr set schema" command

cmd/add/domain/domain.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func NewdomainCmd() *cobra.Command {
3232

3333
cmd := &cobra.Command{
3434
Use: "domain",
35-
Short: "add doamin",
36-
Long: `This commmand adds domain`,
35+
Short: "Adds doamin",
36+
Long: `Use this command to whitelist a domain.`,
3737
Example: heredoc.Doc(`$ lr add domain --domain <domain>
3838
Your Domain <newDomain> is now whitelisted
3939
`),
@@ -65,7 +65,7 @@ func NewdomainCmd() *cobra.Command {
6565
},
6666
}
6767
fl := cmd.Flags()
68-
fl.StringVarP(&opts.Domain, "domain", "d", "", "Enter Domain Value")
68+
fl.StringVarP(&opts.Domain, "domain", "d", "", "Enter Domain Value that you want to add")
6969

7070
return cmd
7171
}

cmd/add/hooks/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func NewHooksCmd() *cobra.Command {
3434
Use: "hooks",
3535
Short: "Adds hooks",
3636
Long: heredoc.Doc(`
37-
This command adds webhooks which are configured to an App.
37+
Use this command to select a webhook event and then configure a URL to receive the payload.
3838
`),
3939
Example: heredoc.Doc(`
4040
$ lr add hooks

cmd/add/loginMethod/loginMethod.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func NewloginMethodCmd() *cobra.Command {
1616
Use: "login-method",
1717
Short: "Adds a Login Mathod",
1818
Long: heredoc.Doc(`
19-
This command adds login methods for your app.
19+
Use this command to add the desired login methods for your application.
2020
`),
2121
Example: heredoc.Doc(`
2222
$ lr add login-method

cmd/add/site/site.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewSiteCmd() *cobra.Command {
3333
Use: "site",
3434
Short: "Adds a site",
3535
Long: heredoc.Doc(`
36-
This command enables user to add a site depending on the subscribed plan.
36+
Use this command to create a new app by specifying the app name and domain and selecting a plan for it.
3737
`),
3838
Example: heredoc.Doc(`
3939
$ lr add site

cmd/add/social/social.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ func NewsocialCmd() *cobra.Command {
1717

1818
cmd := &cobra.Command{
1919
Use: "social",
20-
Short: "add social provider",
21-
Long: `This commmand adds social provider`,
20+
Short: "Adds a social provider",
21+
Long: `Use this command to select and configure a social login provider for your application.`,
2222
Example: `$ lr add social
2323
? Select the provider from the list: Facebook
2424
Please enter the provider key:

cmd/add/sott/sott.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func NewSottCmd() *cobra.Command {
3434
cmd := &cobra.Command{
3535
Use: "sott",
3636
Short: "Adds a sott",
37-
Long: `Use this command to add a sott configured for your app.`,
37+
Long: `Use this command to generate a time-bound SOTT.`,
3838
Example: heredoc.Doc(`$ lr add sott -f <FromDate(mm/dd/yyyy)> -t <ToDate(mm/dd/yyyy)>
3939
Comment(optional): <value>
4040
Select a technology
@@ -63,9 +63,9 @@ func NewSottCmd() *cobra.Command {
6363
}
6464

6565
fl := cmd.Flags()
66-
fl.StringVarP(&opts.FromDate, "FromDate", "f", "", "From Date")
66+
fl.StringVarP(&opts.FromDate, "FromDate", "f", "", "From Date of the the SOTT")
6767

68-
fl.StringVarP(&opts.ToDate, "ToDate", "t", "", "To Date")
68+
fl.StringVarP(&opts.ToDate, "ToDate", "t", "", "To Date of the SOTT")
6969

7070
return cmd
7171
}

cmd/delete/account/account.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func NewaccountCmd() *cobra.Command {
3030

3131
cmd := &cobra.Command{
3232
Use: "account",
33-
Short: "delete account",
34-
Long: `This commmand deletes account`,
33+
Short: "Delete an account",
34+
Long: `Use this command to delete a user from your app.`,
3535
Example: heredoc.Doc(`$ lr delete account --email <email> (or) --uid <uid>
3636
User account sucessfully deleted
3737
`),
@@ -48,8 +48,8 @@ func NewaccountCmd() *cobra.Command {
4848
}
4949

5050
fl := cmd.Flags()
51-
fl.StringVarP(&inpEmail, "email", "e", "", "emailID")
52-
fl.StringVarP(&inpUID, "uid", "u", "", "UID")
51+
fl.StringVarP(&inpEmail, "email", "e", "", "Email id of the user you want to delete")
52+
fl.StringVarP(&inpUID, "uid", "u", "", "UID of the user you want to delete")
5353

5454
return cmd
5555
}

cmd/delete/customField/customField.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ func NewDeleteCFCmd() *cobra.Command {
1515

1616
cmd := &cobra.Command{
1717
Use: "custom-field",
18-
Short: "",
19-
Long: `This commmand deletes the Custom Field`,
18+
Short: "Deletes a custom field",
19+
Long: `Use this command to delete a custom field from your Auth Page(IDX). `,
2020
Example: heredoc.Doc(`$ lr delete custom-field
2121
? Select the field you Want to delete from the list: MyCF
2222
? Are you Sure you want to delete this custom field? Yes

0 commit comments

Comments
 (0)