decsriptions

This commit is contained in:
cupcakearmy 2021-04-11 13:08:50 +02:00
parent 335724cce7
commit 9ba58ee7f8
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
4 changed files with 4 additions and 4 deletions

View File

@ -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()
{

View File

@ -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 {

View File

@ -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)

View File

@ -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)