Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/commands/files/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Examples:
cerebrium cp local_file.txt # Upload to /local_file.txt
cerebrium cp local_file.txt remote.txt # Upload to /remote.txt
cerebrium cp local_dir/ remote_dir/ # Upload directory
cerebrium cp file.txt --region us-west-2 # Upload to specific region`,
cerebrium cp file.txt --region us-west-2 # Upload to specific region
cerebrium cp file.txt --region global # Upload to global storage`,
Args: cobra.RangeArgs(1, 2),
RunE: func(cmd *cobra.Command, args []string) error {
return runCp(cmd, args, region)
Expand Down
3 changes: 2 additions & 1 deletion internal/commands/files/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ func NewDownloadCmd() *cobra.Command {
Examples:
cerebrium download remote_file.txt # Download to ./remote_file.txt
cerebrium download remote.txt local.txt # Download to ./local.txt
cerebrium download file.txt --region us-west-2 # Download from specific region`,
cerebrium download file.txt --region us-west-2 # Download from specific region
cerebrium download file.txt --region global # Download from global storage`,
Args: cobra.RangeArgs(1, 2),
RunE: func(cmd *cobra.Command, args []string) error {
return runDownload(cmd, args, region)
Expand Down
3 changes: 2 additions & 1 deletion internal/commands/files/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func NewLsCmd() *cobra.Command {
Examples:
cerebrium ls # List all files in the root directory
cerebrium ls sub_folder/ # List all files in a specific directory
cerebrium ls --region us-west-2 # List files in a specific region`,
cerebrium ls --region us-west-2 # List files in a specific region
cerebrium ls --region global # List files in global storage`,
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
return runLs(cmd, args, region)
Expand Down
3 changes: 2 additions & 1 deletion internal/commands/files/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Examples:
cerebrium rm /file_name.txt # Remove a specific file
cerebrium rm /sub_folder/file_name.txt # Remove file in subdirectory
cerebrium rm /sub_folder/ # Remove directory (must end with /)
cerebrium rm --region us-west-2 /file # Remove from specific region`,
cerebrium rm --region us-west-2 /file # Remove from specific region
cerebrium rm --region global /file # Remove from global storage`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
return runRm(cmd, args, region)
Expand Down
Loading