mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-22 08:16:25 +00:00
decsriptions
This commit is contained in:
parent
335724cce7
commit
9ba58ee7f8
@ -26,7 +26,7 @@ import (
|
|||||||
// backupCmd represents the backup command
|
// backupCmd represents the backup command
|
||||||
var backupCmd = &cobra.Command{
|
var backupCmd = &cobra.Command{
|
||||||
Use: "backup",
|
Use: "backup",
|
||||||
Short: "A brief description of your command",
|
Short: "Create backups for given locations",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
config := internal.GetConfig()
|
config := internal.GetConfig()
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
// execCmd represents the exec command
|
// execCmd represents the exec command
|
||||||
var execCmd = &cobra.Command{
|
var execCmd = &cobra.Command{
|
||||||
Use: "exec",
|
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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
config := internal.GetConfig()
|
config := internal.GetConfig()
|
||||||
if err := config.CheckConfig(); err != nil {
|
if err := config.CheckConfig(); err != nil {
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
var installCmd = &cobra.Command{
|
var installCmd = &cobra.Command{
|
||||||
Use: "install",
|
Use: "install",
|
||||||
Short: "A brief description of your command",
|
Short: "Install restic if missing",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
err := bins.InstallRestic()
|
err := bins.InstallRestic()
|
||||||
cobra.CheckErr(err)
|
cobra.CheckErr(err)
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
var upgradeCmd = &cobra.Command{
|
var upgradeCmd = &cobra.Command{
|
||||||
Use: "upgrade",
|
Use: "upgrade",
|
||||||
Short: "A brief description of your command",
|
Short: "Upgrade autorestic and restic",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
noRestic, _ := cmd.Flags().GetBool("no-restic")
|
noRestic, _ := cmd.Flags().GetBool("no-restic")
|
||||||
err := bins.Upgrade(!noRestic)
|
err := bins.Upgrade(!noRestic)
|
||||||
|
Loading…
Reference in New Issue
Block a user