Skip to content

Commit

Permalink
Clarify the instructions for uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
nanjiangshu committed May 15, 2024
1 parent caa8855 commit 1b0494f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ var Usage = `
USAGE: %s upload -config <s3config-file> (--encrypt-with-key <public-key-file>) (--force-overwrite) (--force-unencrypted) (-r) [file(s) | folder(s)] (-targetDir <upload-directory>)
upload:
Uploads files to the Sensitive Data Archive (SDA). All files
to upload are required to be encrypted and have the .c4gh file
extension.
Uploads files to the Sensitive Data Archive (SDA).
All files to upload are required to be crypt4gh encrypted when the flag -encrypt-with-key is not set.
On the other hand, non-encrypted files should be provided when the flag -encrypt-with-key is set.
`

// ArgHelp is the suffix text that will be displayed after the argument list in
Expand Down Expand Up @@ -59,9 +59,9 @@ var forceOverwrite = Args.Bool("force-overwrite", false, "Force overwrite existi

var pubKeyPath = Args.String("encrypt-with-key", "",
"Public key file to use for encryption of files before upload.\n"+
"The key file may optionally contain several concatenated\n"+
"public keys. The argument list may include only unencrypted\n"+
"data if this flag is set.")
"The key file may optionally contain several concatenated public keys.\n"+
"Only unencrypted data should be provided when this flag is set.",
)

// Function uploadFiles uploads the files in the input list to the s3 bucket
func uploadFiles(files, outFiles []string, targetDir string, config *helpers.Config) error {
Expand Down

0 comments on commit 1b0494f

Please sign in to comment.