Skip to content

Commit d81a5ba

Browse files
committed
updated doc formatting
1 parent cd8de0f commit d81a5ba

32 files changed

+63
-60
lines changed

cmd/files/cmd_files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func NewFilesCmd() *cobra.Command {
2121
Example: `
2222
# Check file status across locales
2323
24-
smartling-cli files status
24+
smartling-cli files status
2525
2626
`,
2727
Run: func(cmd *cobra.Command, args []string) {

cmd/files/list/cmd_list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Available options:
5858
Example: `
5959
# List project files
6060
61-
smartling-cli files list
61+
smartling-cli files list
62+
6263
`,
6364
Run: func(_ *cobra.Command, args []string) {
6465
var uri string

cmd/files/pull/cmd_pull.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Available options:
8888
Example: `
8989
# Download translated files
9090
91-
smartling-cli files pull "**/*.json" --locale fr-FR --locale de-DE
91+
smartling-cli files pull "**/*.json" --locale fr-FR --locale de-DE
92+
9293
`,
9394
Run: func(_ *cobra.Command, args []string) {
9495
if len(args) > 0 {

cmd/files/push/cmd_push.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,31 +61,31 @@ can be used to override detected file type.
6161
Example: `
6262
# Upload files to a translation job
6363
64-
smartling-cli files push my-file.txt --job "Website Update" --authorize
64+
smartling-cli files push my-file.txt --job "Website Update" --authorize
6565
6666
# Upload multiple files with pattern matching
6767
68-
smartling-cli files push "src/**/*.json" --job "App Localization"
68+
smartling-cli files push "src/**/*.json" --job "App Localization"
6969
7070
# Manual branch naming
7171
72-
smartling-cli files push "**/*.txt" --branch "feature-branch"
72+
smartling-cli files push "**/*.txt" --branch "feature-branch"
7373
7474
# Automatic Git branch detection
7575
76-
smartling-cli files push "**/*.txt" --branch "@auto"
76+
smartling-cli files push "**/*.txt" --branch "@auto"
7777
7878
# All JSON files in subdirectories
7979
80-
smartling-cli files push "**/*.json"
80+
smartling-cli files push "**/*.json"
8181
8282
# Specific file types
8383
84-
smartling-cli files push "**/*.{json,xml,properties}"
84+
smartling-cli files push "**/*.{json,xml,properties}"
8585
8686
# Files matching naming convention
8787
88-
smartling-cli files push "**/messages_*.properties"
88+
smartling-cli files push "**/messages_*.properties"
8989
9090
`,
9191
RunE: func(cmd *cobra.Command, args []string) error {

cmd/init/cmd_init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ Default config values can be passed via following options:` +
6262
# This creates a smartling.yml file in your current directory with your project settings.
6363
# Note: Running init again will overwrite the existing configuration file.
6464
65-
smartling-cli init
65+
smartling-cli init
6666
6767
# Dry run of init command without overwriting the existing configuration file.
6868
69-
smartling-cli init --dry-run
69+
smartling-cli init --dry-run
7070
7171
`,
7272
Run: func(_ *cobra.Command, _ []string) {

cmd/mt/detect/cmd_detect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func NewDetectCmd(initializer mtcmd.SrvInitializer) *cobra.Command {
3434
Example: `
3535
# Detect file language
3636
37-
smartling-cli mt detect document.txt
37+
smartling-cli mt detect document.txt
3838
3939
`,
4040
RunE: func(cmd *cobra.Command, args []string) error {

cmd/mt/translate/cmd_translate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ func NewTranslateCmd(initializer mtcmd.SrvInitializer) *cobra.Command {
4242
Example: `
4343
# Translate with automatic language detection
4444
45-
smartling-cli mt translate document.txt --target-locale es-ES
45+
smartling-cli mt translate document.txt --target-locale es-ES
4646
4747
# Translate with explicit source language
4848
49-
smartling-cli mt translate document.txt --source-locale en --target-locale fr-FR
49+
smartling-cli mt translate document.txt --source-locale en --target-locale fr-FR
5050
5151
`,
5252
RunE: func(cmd *cobra.Command, args []string) error {
@@ -89,7 +89,7 @@ smartling-cli mt translate document.txt --source-locale en --target-locale fr-FR
8989
translateCmd.Flags().StringVar(&sourceLocale, sourceLocaleFlag, "", "Explicitly specify source language")
9090
translateCmd.Flags().StringArrayVarP(&targetLocales, targetLocaleFlag, "l", nil, `Target language(s). Can be specified multiple times.
9191
Example: Specifying two target locales
92-
smartling-cli mt translate --target-locale fr --target-locale es-ES`)
92+
smartling-cli mt translate --target-locale fr --target-locale es-ES`)
9393
translateCmd.Flags().StringVar(&overrideFileType, overrideFileTypeFlag, "", `Override the automatically detected file type.
9494
A complete list of supported types can be found in the API documentation:
9595
https://api-reference.smartling.com/#tag/File-Machine-Translations-(MT)/operation/fileUpload`)

cmd/projects/info/cmd_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Available options:` + help.AuthenticationOptions,
2525
Example: `
2626
# View project information
2727
28-
smartling-cli projects info
28+
smartling-cli projects info
2929
3030
`,
3131
Run: func(_ *cobra.Command, _ []string) {

cmd/projects/list/cmd_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Available options:
3939
Example: `
4040
# List all projects in your account
4141
42-
smartling-cli projects list
42+
smartling-cli projects list
4343
4444
`,
4545
Run: func(_ *cobra.Command, _ []string) {

cmd/projects/locales/cmd_locates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Available options:
4949
Example: `
5050
# List all target locales
5151
52-
smartling-cli projects locales
52+
smartling-cli projects locales
5353
5454
`,
5555
Run: func(_ *cobra.Command, _ []string) {

0 commit comments

Comments
 (0)