mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-24 13:09:31 -06:00
31 lines
510 B
Go
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
|
|
}
|