mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-12 06:39:32 -06:00
31 lines
505 B
Go
31 lines
505 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", "", "User")
|
|
|
|
cmd.AddCommand(
|
|
setupCatCommand(),
|
|
setupSetfaclCommand(),
|
|
setupCpCommand(),
|
|
setupImportCommand(),
|
|
setupLsCommand(),
|
|
setupMkdirCommand(),
|
|
setupMvCommand(),
|
|
setupPublinksCommand(),
|
|
setupRmCommand(),
|
|
setupSearchCommand(),
|
|
)
|
|
|
|
return cmd
|
|
}
|