Skip to content

Commit c11d4fa

Browse files
committed
chore: add long description for mount and umount cmd
1 parent 687b856 commit c11d4fa

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

mount.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ import (
1919
var mountCmd = &cobra.Command{
2020
Use: "mount",
2121
Short: "Mount a drive",
22+
Long: "The mount command lets you mount one or more drives by starting the corresponding systemd service.\n" +
23+
"Use 'mount all' to mount all drives at once.\n" +
24+
"Use 'mount <drive>' to mount a specific drive.\n" +
25+
"Use 'mount <drive1> <drive2>' to mount multiple drives at once.\n" +
26+
"You can use tab completion to see all available drives.\n",
2227
CompletionOptions: cobra.CompletionOptions{
2328
DisableDefaultCmd: true,
2429
},
@@ -84,7 +89,11 @@ func mount(cmd *cobra.Command, args []string) {
8489
var umountCmd = &cobra.Command{
8590
Use: "umount",
8691
Short: "Unmount a drive",
87-
92+
Long: "The umount command lets you umount one or more drives by stopping the corresponding systemd service.\n" +
93+
"Use 'umount all' to umount all drives at once.\n" +
94+
"Use 'umount <drive>' to umount a specific drive.\n" +
95+
"Use 'umount <drive1> <drive2>' to umount multiple drives at once.\n" +
96+
"You can use tab completion to see all available drives.\n",
8897
CompletionOptions: cobra.CompletionOptions{
8998
DisableDefaultCmd: true,
9099
},

0 commit comments

Comments
 (0)