@ -32,15 +32,15 @@ Format: `scbm set _program-name_ _key_ _new-value_`
Action: Will set a new value for a given key for a given program. Will request confirmation of value before updating the database.
### upgrade
Format: `scbm upgrade [program name ...]`
Format: `scbm upgrade _program- name..._`
Action: Will pull updates for each program, or optionally just the program passed in, and run the install command for each. Before doing so the current commit hash will be stored in the \*prev field for the program.
### revert
Format `scbm revert [-f] _program-name_`
Format `scbm revert _program-name_`
Action: Will move to the commit hash stored in in the \*prev field for the given program. Will run the install command for the given program. Will remove the commit hash from the \*prev slice and move it to current. If the `-f` flag is passed, it will also freeze the program (but not trash it).
### list
Format: `scbm list [-v]`
Format: `scbm list`
Action: Will output a table in the format: "program name\tdescription" for each program currently managed by scbm. The verbose flag will render a full view for all items.
fmt.Println("\033[1mAction:\033[0m\n\tWill freeze a program (prevent it from receiving further updates). \033[1mDOES NOT\033[0m delete any files or uninstall any programs. If the `-trash` flag is passed the repo will be removed from the scbm folder; this is not recommended unless you have properly uninstalled the program beforehand as `-trash` only removes the program from management by scbm. It does not remove or alter any files outside of the scbm folder.")
fmt.Println("\033[1mAction:\033[0m\n\tWill reactivate a froven program, allowing it to receive updates with the `update` command.")
case"list":
fmt.Println("\033[1;4mList\033[0m")
fmt.Println("\033[1mFormat:\033[0m\n\tscbm list")
fmt.Println("\033[1mAction:\033[0m\n\tWill output a table displaying all of the programs under scbm management showing the program name, the discription, and the programs freeze status.")
case"get":
fmt.Println("\033[1;4mGet\033[0m")
fmt.Println("")
fmt.Println("\033[1mFormat:\033[0m\n\tscbm get \033[3mclone-url\033[0m [name]")
fmt.Println("\033[1mAction:\033[0m\n\tWill attempt to clone the repo at the given url into the sbm staging folder and add the program to the scbm databse. The name field will default to the new repo name, but can be replaced by a name passed in as the final argument to the get command. The current HEAD of the master branch will be set as the current commit.")
default:
fmt.Printf("No help exists for %q...\n",c)
}
}
// list loads the manifest file into memory and will print out