Files
phylum/server/internal/command/fs/cmd.go
2025-04-27 01:13:43 +05:30

31 lines
510 B
Go

package fs
import (
"github.com/spf13/cobra"
)
func SetupCommand() *cobra.Command {
cmd := &cobra.Command{
GroupID: "app",
Use: "fs",
Short: "Filesystem",
}
flags := cmd.PersistentFlags()
flags.StringP("user", "u", "phylum", "User")
cmd.AddCommand(
setupCatCommand(),
setupChpermCommand(),
setupCpCommand(),
setupImportCommand(),
setupLsCommand(),
setupMkdirCommand(),
setupMvCommand(),
setupPublinksCommand(),
setupRmCommand(),
setupSearchCommand(),
)
return cmd
}