Skip to content

Commit 897e757

Browse files
committed
Adjust usage text
1 parent 05f12e5 commit 897e757

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

cmd/src/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The commands are:
2525
2626
Use "src snapshot [command] -h" for more information about a command.
2727
28-
`
28+
`
2929
flagSet := flag.NewFlagSet("snapshot", flag.ExitOnError)
3030

3131
commands = append(commands, &command{

cmd/src/snapshot_upload.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ Usage:
6767
6868
Examples:
6969
70-
src snapshot upload -bucket=sourcegraph-cloud-data-migration-example-bucket -credentials=path/to/migration_private_key.json
70+
src snapshot upload -bucket=example-bucket-name -credentials=path/to/migration_private_key.json
7171
72-
src snapshot upload -bucket=sourcegraph-cloud-data-migration-example-bucket -credentials=./migration_private_key.json -file=pgsql.sql
72+
src snapshot upload -bucket=example-bucket-name -credentials=./migration_private_key.json -file=pgsql.sql
7373
74-
src snapshot upload -bucket=sourcegraph-cloud-data-migration-example-bucket -credentials=./migration_private_key.json -file="codeinsights.sql, codeintel.sql, pgsql.sql"
74+
src snapshot upload -bucket=example-bucket-name -credentials=./migration_private_key.json -file="codeinsights.sql, codeintel.sql, pgsql.sql"
7575
7676
Args:
7777
@@ -95,10 +95,10 @@ Args:
9595
`, strings.Join(listOfValidFiles, ", "))
9696

9797
flagSet := flag.NewFlagSet("upload", flag.ExitOnError)
98-
bucketName := flagSet.String("bucket", "", "destination Cloud Storage bucket name")
99-
credentialsPath := flagSet.String("credentials", "", "JSON credentials file for Google Cloud service account")
100-
fileArg := flagSet.String("file", strings.Join(listOfValidFiles, ","), "comma-delimited list of files to upload")
101-
filterSQL := flagSet.Bool("filter-sql", true, "filter incompatible SQL statements from database dumps for import to Google Cloud SQL")
98+
bucketName := flagSet.String("bucket", "", "Name of the Google Cloud Storage bucket provided by Sourcegraph")
99+
credentialsPath := flagSet.String("credentials", "", "File path to the credentials file provided by Sourcegraph")
100+
fileArg := flagSet.String("file", strings.Join(listOfValidFiles, ","), "Specify which files from the ./src-snapshot directory to upload")
101+
filterSQL := flagSet.Bool("filter-sql", true, "Filter incompatible SQL statements from database snapshots which break the import into Google Cloud SQL")
102102

103103
// Register this command with the parent 'src snapshot' command.
104104
// The parent snapshot.go command runs all registered subcommands via snapshotCommands.run().

0 commit comments

Comments
 (0)