Skip to content

Commit 634e943

Browse files
Update help text to use 'instance' instead of 'workspace'
- Change copyLong description to use 'remote instance' - Update copyExample to use 'instance_name' in examples - Update error messages to reference 'instance path' format - Maintain consistency with Brev CLI terminology Co-Authored-By: Alec Fong <alecsanf@usc.edu>
1 parent afcddc3 commit 634e943

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pkg/cmd/copy/copy.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
)
2323

2424
var (
25-
copyLong = "Copy files between your local machine and remote workspace"
26-
copyExample = "brev copy workspace_name:/path/to/remote/file /path/to/local/file\nbrev copy /path/to/local/file workspace_name:/path/to/remote/file"
25+
copyLong = "Copy files between your local machine and remote instance"
26+
copyExample = "brev copy instance_name:/path/to/remote/file /path/to/local/file\nbrev copy /path/to/local/file instance_name:/path/to/remote/file"
2727
)
2828

2929
type CopyStore interface {
@@ -43,7 +43,7 @@ func NewCmdCopy(t *terminal.Terminal, store CopyStore, noLoginStartStore CopySto
4343
Use: "copy",
4444
Aliases: []string{"cp", "scp"},
4545
DisableFlagsInUseLine: true,
46-
Short: "copy files between local and remote workspace",
46+
Short: "copy files between local and remote instance",
4747
Long: copyLong,
4848
Example: copyExample,
4949
Args: cmderrors.TransformToValidationError(cobra.ExactArgs(2)),
@@ -99,7 +99,7 @@ func parseCopyArguments(source, dest string) (workspaceNameOrID, remotePath, loc
9999
}
100100

101101
if (sourceWorkspace == "" && destWorkspace == "") || (sourceWorkspace != "" && destWorkspace != "") {
102-
return "", "", "", false, breverrors.NewValidationError("exactly one of source or destination must be a workspace path (format: workspace_name:/path)")
102+
return "", "", "", false, breverrors.NewValidationError("exactly one of source or destination must be an instance path (format: instance_name:/path)")
103103
}
104104

105105
if sourceWorkspace != "" {
@@ -169,7 +169,7 @@ func parseWorkspacePath(path string) (workspace, filePath string, err error) {
169169

170170
parts := strings.Split(path, ":")
171171
if len(parts) != 2 {
172-
return "", "", breverrors.NewValidationError("invalid workspace path format, use workspace_name:/path")
172+
return "", "", breverrors.NewValidationError("invalid instance path format, use instance_name:/path")
173173
}
174174

175175
return parts[0], parts[1], nil

0 commit comments

Comments
 (0)