Files
phylum/server/internal/command/fs/cmd.go
2025-05-28 23:25:38 +05:30

32 lines
627 B
Go

package fs
import (
"github.com/shroff/phylum/server/internal/command/fs/publink"
"github.com/shroff/phylum/server/internal/command/fs/trash"
"github.com/spf13/cobra"
)
func SetupCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "fs",
Short: "Filesystem",
}
cmd.PersistentFlags().StringP("user-email", "u", "", "User Email")
cmd.AddCommand(
setupCatCommand(),
setupSetfaclCommand(),
setupCpCommand(),
setupImportCommand(),
setupLsCommand(),
setupMkdirCommand(),
setupMvCommand(),
setupRmCommand(),
setupSearchCommand(),
publink.SetupCommand(),
trash.SetupCommand(),
)
return cmd
}