mirror of
https://github.com/restic/restic.git
synced 2026-09-15 00:37:58 +00:00
Create root command via function
This commit is contained in:
@@ -22,6 +22,10 @@ import (
|
||||
"github.com/anacrolix/fuse/fs"
|
||||
)
|
||||
|
||||
func registerMountCommand(cmdRoot *cobra.Command) {
|
||||
cmdRoot.AddCommand(newMountCommand())
|
||||
}
|
||||
|
||||
func newMountCommand() *cobra.Command {
|
||||
var opts MountOptions
|
||||
|
||||
@@ -84,10 +88,6 @@ Exit status is 12 if the password is incorrect.
|
||||
return cmd
|
||||
}
|
||||
|
||||
func init() {
|
||||
cmdRoot.AddCommand(newMountCommand())
|
||||
}
|
||||
|
||||
// MountOptions collects all options for the mount command.
|
||||
type MountOptions struct {
|
||||
OwnerRoot bool
|
||||
|
||||
Reference in New Issue
Block a user