Skip to content

Commit 655fb32

Browse files
authored
Fixed Minor Violations by UX writing Audit of Jfrog CLI (#3385)
1 parent 9bdc04a commit 655fb32

File tree

10 files changed

+32
-32
lines changed

10 files changed

+32
-32
lines changed

docs/artifactory/cocoapodsconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package cocoapodsconfig
33
var Usage = []string{"rt cocoapods-config [command options]"}
44

55
func GetDescription() string {
6-
return "Generate cocoapods build configuration."
6+
return "Generate CocoaPods build configuration"
77
}

docs/artifactory/dotnetconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package dotnetconfig
33
var Usage = []string{"rt dotnet-config [command options]"}
44

55
func GetDescription() string {
6-
return "Generate dotnet configuration."
6+
return "Generate .NET configuration"
77
}

docs/artifactory/goconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package goconfig
33
var Usage = []string{"rt go-config [command options]"}
44

55
func GetDescription() string {
6-
return "Generate go build configuration."
6+
return "Generate Go build configuration"
77
}

docs/artifactory/gradleconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package gradleconfig
33
var Usage = []string{"rt gradle-config [command options]"}
44

55
func GetDescription() string {
6-
return "Generate gradle build configuration."
6+
return "Generate Gradle build configuration"
77
}

docs/artifactory/mvnconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package mvnconfig
33
var Usage = []string{"rt mvn-config [command options]"}
44

55
func GetDescription() string {
6-
return "Generate maven build configuration."
6+
return "Generate Maven build configuration"
77
}

docs/artifactory/nugetconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package nugetconfig
33
var Usage = []string{"rt nuget-config [command options]"}
44

55
func GetDescription() string {
6-
return "Generate nuget configuration."
6+
return "Generate NuGet configuration"
77
}

docs/artifactory/pipconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package pipconfig
33
var Usage = []string{"rt pip-config"}
44

55
func GetDescription() string {
6-
return "Generate pip build configuration."
6+
return "Generate pip build configuration"
77
}

docs/artifactory/terraformconfig/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package terraformconfig
33
var Usage = []string{"terraform-config [command options]"}
44

55
func GetDescription() string {
6-
return "Generate terraform configuration."
6+
return "Generate Terraform configuration"
77
}

docs/common/env.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@ const (
8080

8181
JfrogCliFailNoOp = ` JFROG_CLI_FAIL_NO_OP
8282
[Default: false]
83-
Set to true if you'd like the command to return exit code 2 in case of no files are affected.
83+
Set to true to return exit code 2 if no files are affected.
8484
Support by the following commands: copy, delete, delete-props, set-props, download, move, search and upload`
8585

8686
JfrogCliUploadEmptyArchive = ` ` + services.JfrogCliUploadEmptyArchiveEnv + `
8787
[Default: false]
88-
Set to true if you'd like to upload an empty archive when '--archive' is set but all files were excluded by exclusions pattern.
88+
Set to true to upload an empty archive when '--archive' is set but all files were excluded by exclusion patterns.
8989
Supported by the upload command`
9090

9191
JfrogCliEncryptionKey = ` JFROG_CLI_ENCRYPTION_KEY
9292
If provided, encrypt the sensitive data stored in the config with the provided key. Must be exactly 32 characters.`
9393

9494
JfrogCliAvoidNewVersionWarning = ` JFROG_CLI_AVOID_NEW_VERSION_WARNING
9595
[Default: false]
96-
Set to true if you'd like to avoid checking the latest available JFrog CLI version and printing warning when it newer than the current one. `
96+
Set to true to skip checking for the latest JFrog CLI version. `
9797

9898
JfrogCliCommandSummaryOutputDirectory = ` JFROG_CLI_COMMAND_SUMMARY_OUTPUT_DIR
9999
Defines the directory path where the command summaries data is stored.

utils/cliutils/commandsflags.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,11 @@ var flagsMap = map[string]cli.Flag{
630630
},
631631
passwordStdin: cli.BoolFlag{
632632
Name: passwordStdin,
633-
Usage: "[Default: false] Set to true if you'd like to provide the password via stdin.` `",
633+
Usage: "[Default: false] Set to true to provide the password via stdin.` `",
634634
},
635635
accessTokenStdin: cli.BoolFlag{
636636
Name: accessTokenStdin,
637-
Usage: "[Default: false] Set to true if you'd like to provide the access token via stdin.` `",
637+
Usage: "[Default: false] Set to true to provide the access token via stdin.` `",
638638
},
639639
// Artifactory's commands flags
640640
url: cli.StringFlag{
@@ -715,11 +715,11 @@ var flagsMap = map[string]cli.Flag{
715715
},
716716
includeDirs: cli.BoolFlag{
717717
Name: includeDirs,
718-
Usage: "[Default: false] Set to true if you'd like to also apply the source path pattern for directories and not just for files.` `",
718+
Usage: "[Default: false] Set to true to also apply the source path pattern for directories.` `",
719719
},
720720
failNoOp: cli.BoolFlag{
721721
Name: failNoOp,
722-
Usage: "[Default: false] Set to true if you'd like the command to return exit code 2 in case of no files are affected.` `",
722+
Usage: "[Default: false] Set to true to return exit code 2 if no files are affected.` `",
723723
},
724724
threads: cli.StringFlag{
725725
Name: threads,
@@ -756,7 +756,7 @@ var flagsMap = map[string]cli.Flag{
756756
},
757757
interactive: cli.BoolTFlag{
758758
Name: interactive,
759-
Usage: "[Default: true, unless $CI is true] Set to false if you do not want the config command to be interactive. If true, the --url option becomes optional.` `",
759+
Usage: "[Default: true, unless $CI is true] Set to false if you don't want the config command to be interactive. If true, the --url option becomes optional.` `",
760760
},
761761
EncPassword: cli.BoolTFlag{
762762
Name: EncPassword,
@@ -782,7 +782,7 @@ var flagsMap = map[string]cli.Flag{
782782
},
783783
uploadRecursive: cli.BoolTFlag{
784784
Name: recursive,
785-
Usage: "[Default: true] Set to false if you do not wish to collect artifacts in sub-folders to be uploaded to Artifactory.` `",
785+
Usage: "[Default: true] Set to false if you don't wish to collect artifacts in sub-folders to be uploaded to Artifactory.` `",
786786
},
787787
uploadFlat: cli.BoolFlag{
788788
Name: flat,
@@ -838,11 +838,11 @@ var flagsMap = map[string]cli.Flag{
838838
},
839839
downloadRecursive: cli.BoolTFlag{
840840
Name: recursive,
841-
Usage: "[Default: true] Set to false if you do not wish to include the download of artifacts inside sub-folders in Artifactory.` `",
841+
Usage: "[Default: true] Set to false if you don't wish to include the download of artifacts inside sub-folders in Artifactory.` `",
842842
},
843843
downloadFlat: cli.BoolFlag{
844844
Name: flat,
845-
Usage: "[Default: false] Set to true if you do not wish to have the Artifactory repository path structure created locally for your downloaded files.` `",
845+
Usage: "[Default: false] Set to true if you don't wish to have the Artifactory repository path structure created locally for your downloaded files.` `",
846846
},
847847
downloadMinSplit: cli.StringFlag{
848848
Name: MinSplit,
@@ -884,7 +884,7 @@ var flagsMap = map[string]cli.Flag{
884884
},
885885
moveRecursive: cli.BoolTFlag{
886886
Name: recursive,
887-
Usage: "[Default: true] Set to false if you do not wish to move artifacts inside sub-folders in Artifactory.` `",
887+
Usage: "[Default: true] Set to false if you don't wish to move artifacts inside sub-folders in Artifactory.` `",
888888
},
889889
moveFlat: cli.BoolFlag{
890890
Name: flat,
@@ -900,7 +900,7 @@ var flagsMap = map[string]cli.Flag{
900900
},
901901
copyRecursive: cli.BoolTFlag{
902902
Name: recursive,
903-
Usage: "[Default: true] Set to false if you do not wish to copy artifacts inside sub-folders in Artifactory.` `",
903+
Usage: "[Default: true] Set to false if you don't wish to copy artifacts inside sub-folders in Artifactory.` `",
904904
},
905905
copyFlat: cli.BoolFlag{
906906
Name: flat,
@@ -916,7 +916,7 @@ var flagsMap = map[string]cli.Flag{
916916
},
917917
deleteRecursive: cli.BoolTFlag{
918918
Name: recursive,
919-
Usage: "[Default: true] Set to false if you do not wish to delete artifacts inside sub-folders in Artifactory.` `",
919+
Usage: "[Default: true] Set to false if you don't wish to delete artifacts inside sub-folders in Artifactory.` `",
920920
},
921921
deleteProps: cli.StringFlag{
922922
Name: props,
@@ -932,7 +932,7 @@ var flagsMap = map[string]cli.Flag{
932932
},
933933
searchRecursive: cli.BoolTFlag{
934934
Name: recursive,
935-
Usage: "[Default: true] Set to false if you do not wish to search artifacts inside sub-folders in Artifactory.` `",
935+
Usage: "[Default: true] Set to false if you don't wish to search artifacts inside sub-folders in Artifactory.` `",
936936
},
937937
count: cli.BoolFlag{
938938
Name: count,
@@ -1016,7 +1016,7 @@ var flagsMap = map[string]cli.Flag{
10161016
},
10171017
fail: cli.BoolTFlag{
10181018
Name: fail,
1019-
Usage: "[Default: true] Set to false if you do not wish the command to return exit code 3, even if the 'Fail Build' rule is matched by Xray.` `",
1019+
Usage: "[Default: true] Set to false if you don't wish the command to return exit code 3, even if the 'Fail Build' rule is matched by Xray.` `",
10201020
},
10211021
Status: cli.StringFlag{
10221022
Name: Status,
@@ -1104,7 +1104,7 @@ var flagsMap = map[string]cli.Flag{
11041104
},
11051105
global: cli.BoolFlag{
11061106
Name: global,
1107-
Usage: "[Default: false] Set to true if you'd like the configuration to be global (for all projects). Specific projects can override the global configuration.` `",
1107+
Usage: "[Default: false] Set to true to make the configuration global (for all projects). Specific projects can override the global configuration.` `",
11081108
},
11091109
serverIdResolve: cli.StringFlag{
11101110
Name: serverIdResolve,
@@ -1160,11 +1160,11 @@ var flagsMap = map[string]cli.Flag{
11601160
},
11611161
deployMavenDesc: cli.BoolTFlag{
11621162
Name: deployMavenDesc,
1163-
Usage: "[Default: true] Set to false if you do not wish to deploy Maven descriptors.` `",
1163+
Usage: "[Default: true] Set to false if you don't wish to deploy Maven descriptors.` `",
11641164
},
11651165
deployIvyDesc: cli.BoolTFlag{
11661166
Name: deployIvyDesc,
1167-
Usage: "[Default: true] Set to false if you do not wish to deploy Ivy descriptors.` `",
1167+
Usage: "[Default: true] Set to false if you don't wish to deploy Ivy descriptors.` `",
11681168
},
11691169
ivyDescPattern: cli.StringFlag{
11701170
Name: ivyDescPattern,
@@ -1388,7 +1388,7 @@ var flagsMap = map[string]cli.Flag{
13881388
},
13891389
useWrapperAudit: cli.BoolTFlag{
13901390
Name: UseWrapper,
1391-
Usage: "[Default: true] Set to false if you wish to not use the gradle or maven wrapper.` `",
1391+
Usage: "[Default: true] Set to false if you don't want to use the Gradle or Maven wrapper.` `",
13921392
},
13931393
ExcludeTestDeps: cli.BoolFlag{
13941394
Name: ExcludeTestDeps,
@@ -1428,7 +1428,7 @@ var flagsMap = map[string]cli.Flag{
14281428
},
14291429
UseWrapper: cli.BoolFlag{
14301430
Name: UseWrapper,
1431-
Usage: "[Default: false] Set to true if you wish to use the wrapper.` `",
1431+
Usage: "[Default: false] Set to true to use the wrapper.` `",
14321432
},
14331433
licenses: cli.BoolFlag{
14341434
Name: licenses,
@@ -1444,7 +1444,7 @@ var flagsMap = map[string]cli.Flag{
14441444
},
14451445
scanRecursive: cli.BoolTFlag{
14461446
Name: recursive,
1447-
Usage: "[Default: true] Set to false if you do not wish to collect artifacts in sub-folders to be scanned by Xray.` `",
1447+
Usage: "[Default: true] Set to false if you don't wish to collect artifacts in sub-folders to be scanned by Xray.` `",
14481448
},
14491449
scanRegexp: cli.BoolFlag{
14501450
Name: regexpFlag,
@@ -1738,11 +1738,11 @@ var flagsMap = map[string]cli.Flag{
17381738
},
17391739
OidcProviderType: cli.StringFlag{
17401740
Name: OidcProviderType,
1741-
Usage: "[Default: GitHub] The type of the OIDC provider.Possible values are: GitHub,Azure,GenericOidc` `",
1741+
Usage: "[Default: GitHub] The type of the OIDC provider. Possible values are: GitHub, Azure, GenericOidc` `",
17421742
},
17431743
ApplicationKey: cli.StringFlag{
17441744
Name: ApplicationKey,
1745-
Usage: "[Optional] JFrog ApplicationKey Key` ` ",
1745+
Usage: "[Optional] JFrog application key` ` ",
17461746
},
17471747
runNative: cli.BoolFlag{
17481748
Name: runNative,

0 commit comments

Comments
 (0)