2016-08-05 16:12:27 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ncw/rclone/cmd"
|
|
|
|
"github.com/ncw/rclone/fs"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2016-10-22 11:05:45 +00:00
|
|
|
cmd.Root.AddCommand(commandDefintion)
|
2016-08-05 16:12:27 +00:00
|
|
|
}
|
|
|
|
|
2016-10-22 11:05:45 +00:00
|
|
|
var commandDefintion = &cobra.Command{
|
2016-08-05 16:12:27 +00:00
|
|
|
Use: "config",
|
|
|
|
Short: `Enter an interactive configuration session.`,
|
|
|
|
Run: func(command *cobra.Command, args []string) {
|
|
|
|
cmd.CheckArgs(0, 0, command, args)
|
|
|
|
fs.EditConfig()
|
|
|
|
},
|
|
|
|
}
|