mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 12:56:36 +02:00
mount2: hide mount2 command for the moment
This commit is contained in:
parent
8318020387
commit
ec1271818f
@ -31,7 +31,7 @@ func init() {
|
|||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
name = "mount"
|
name = "mount"
|
||||||
}
|
}
|
||||||
mountlib.NewMountCommand(name, Mount)
|
mountlib.NewMountCommand(name, false, Mount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// mountOptions configures the options from the command line flags
|
// mountOptions configures the options from the command line flags
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
mountlib.NewMountCommand("mount", Mount)
|
mountlib.NewMountCommand("mount", false, Mount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// mountOptions configures the options from the command line flags
|
// mountOptions configures the options from the command line flags
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
mountlib.NewMountCommand("mount2", Mount)
|
mountlib.NewMountCommand("mount2", true, Mount)
|
||||||
}
|
}
|
||||||
|
|
||||||
// mountOptions configures the options from the command line flags
|
// mountOptions configures the options from the command line flags
|
||||||
|
@ -98,10 +98,11 @@ func checkMountpointOverlap(root, mountpoint string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewMountCommand makes a mount command with the given name and Mount function
|
// NewMountCommand makes a mount command with the given name and Mount function
|
||||||
func NewMountCommand(commandName string, Mount func(f fs.Fs, mountpoint string) error) *cobra.Command {
|
func NewMountCommand(commandName string, hidden bool, Mount func(f fs.Fs, mountpoint string) error) *cobra.Command {
|
||||||
var commandDefinition = &cobra.Command{
|
var commandDefinition = &cobra.Command{
|
||||||
Use: commandName + " remote:path /path/to/mountpoint",
|
Use: commandName + " remote:path /path/to/mountpoint",
|
||||||
Short: `Mount the remote as file system on a mountpoint.`,
|
Hidden: hidden,
|
||||||
|
Short: `Mount the remote as file system on a mountpoint.`,
|
||||||
Long: `
|
Long: `
|
||||||
rclone ` + commandName + ` allows Linux, FreeBSD, macOS and Windows to
|
rclone ` + commandName + ` allows Linux, FreeBSD, macOS and Windows to
|
||||||
mount any of Rclone's cloud storage systems as a file system with
|
mount any of Rclone's cloud storage systems as a file system with
|
||||||
|
Loading…
x
Reference in New Issue
Block a user