Skip to content

Commit bb11640

Browse files
committed
Move example in copy command from Long to Example
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 60b46ea commit bb11640

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmd/limactl/copy.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ Backends:
3232
rsync - Uses rsync for faster transfers with resume capability (requires rsync on both host and guest)
3333
scp - Uses scp for reliable transfers (always available)
3434
35-
Examples:
35+
Not to be confused with 'limactl clone'.
36+
`
37+
38+
const copyExample = `
3639
# Copy file from guest to host (auto backend)
3740
limactl copy default:/etc/os-release .
3841
@@ -47,8 +50,6 @@ Examples:
4750
4851
# Copy multiple files
4952
limactl copy file1.txt file2.txt default:/tmp/
50-
51-
Not to be confused with 'limactl clone'.
5253
`
5354

5455
type copyTool string
@@ -72,6 +73,7 @@ func newCopyCommand() *cobra.Command {
7273
Aliases: []string{"cp"},
7374
Short: "Copy files between host and guest",
7475
Long: copyHelp,
76+
Example: copyExample,
7577
Args: WrapArgsError(cobra.MinimumNArgs(2)),
7678
RunE: copyAction,
7779
GroupID: advancedCommand,

0 commit comments

Comments
 (0)