decsriptions

pull/44/head
cupcakearmy 4 years ago
parent 335724cce7
commit 9ba58ee7f8
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

@ -26,7 +26,7 @@ import (
// backupCmd represents the backup command
var backupCmd = &cobra.Command{
Use: "backup",
Short: "A brief description of your command",
Short: "Create backups for given locations",
Run: func(cmd *cobra.Command, args []string) {
config := internal.GetConfig()
{

@ -25,7 +25,7 @@ import (
// execCmd represents the exec command
var execCmd = &cobra.Command{
Use: "exec",
Short: "A brief description of your command",
Short: "Execute arbitrary native restic commands for given backends",
Run: func(cmd *cobra.Command, args []string) {
config := internal.GetConfig()
if err := config.CheckConfig(); err != nil {

@ -22,7 +22,7 @@ import (
var installCmd = &cobra.Command{
Use: "install",
Short: "A brief description of your command",
Short: "Install restic if missing",
Run: func(cmd *cobra.Command, args []string) {
err := bins.InstallRestic()
cobra.CheckErr(err)

@ -22,7 +22,7 @@ import (
var upgradeCmd = &cobra.Command{
Use: "upgrade",
Short: "A brief description of your command",
Short: "Upgrade autorestic and restic",
Run: func(cmd *cobra.Command, args []string) {
noRestic, _ := cmd.Flags().GetBool("no-restic")
err := bins.Upgrade(!noRestic)

Loading…
Cancel
Save