"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
config: add paths command to show configured paths
albertony352f9bcd47f4
diff --git a/cmd/config/config.go b/cmd/config/config.goindex 2aeacbad7..555ac7063 100644--- a/cmd/config/config.go+++ b/cmd/config/config.go@@ -23,6 +23,7 @@ func init() {configCommand.AddCommand(configEditCommand)configCommand.AddCommand(configFileCommand)configCommand.AddCommand(configTouchCommand)+ configCommand.AddCommand(configPathsCommand)configCommand.AddCommand(configShowCommand)configCommand.AddCommand(configDumpCommand)configCommand.AddCommand(configProvidersCommand)@@ -73,6 +74,17 @@ var configTouchCommand = &cobra.Command{},}+var configPathsCommand = &cobra.Command{+ Use: "paths",+ Short: `Show paths used for configuration, cache, temp etc.`,+ Run: func(command *cobra.Command, args []string) {+ cmd.CheckArgs(0, 0, command, args)+ fmt.Printf("Config file: %s\n", config.GetConfigPath())+ fmt.Printf("Cache dir: %s\n", config.CacheDir)+ fmt.Printf("Temp dir: %s\n", os.TempDir())+ },+}+var configShowCommand = &cobra.Command{Use: "show [<remote>]",Short: `Print (decrypted) config file, or the config for a single remote.`,