2022-05-14 17:54:35 +00:00
|
|
|
package fs
|
2022-05-13 14:21:47 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2023-07-27 10:03:08 +00:00
|
|
|
func New() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
2023-12-28 13:14:55 +00:00
|
|
|
Use: "fs",
|
|
|
|
Short: "Filesystem related commands",
|
2024-02-20 16:14:37 +00:00
|
|
|
Long: `Commands to do file system operations on DBFS and UC Volumes.`,
|
2023-12-28 13:14:55 +00:00
|
|
|
GroupID: "workspace",
|
2023-07-27 10:03:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
cmd.AddCommand(
|
|
|
|
newCatCommand(),
|
|
|
|
newCpCommand(),
|
|
|
|
newLsCommand(),
|
|
|
|
newMkdirCommand(),
|
|
|
|
newRmCommand(),
|
|
|
|
)
|
2022-05-13 14:21:47 +00:00
|
|
|
|
2023-07-27 10:03:08 +00:00
|
|
|
return cmd
|
2022-05-13 14:21:47 +00:00
|
|
|
}
|