mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01:00
21 lines
378 B
Go
21 lines
378 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"github.com/ncw/rclone/cmd"
|
||
|
"github.com/ncw/rclone/fs"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
cmd.Root.AddCommand(configCmd)
|
||
|
}
|
||
|
|
||
|
var configCmd = &cobra.Command{
|
||
|
Use: "config",
|
||
|
Short: `Enter an interactive configuration session.`,
|
||
|
Run: func(command *cobra.Command, args []string) {
|
||
|
cmd.CheckArgs(0, 0, command, args)
|
||
|
fs.EditConfig()
|
||
|
},
|
||
|
}
|