# cocommit
# How to run *Insert blerb about go install if it works* Download the binary for your OS on the [release page](https://github.com/Slug-Boi/cocommit/releases) Once downloaded you need to create an alias for your shell guides found below: [Bash Guide for alias](https://linuxize.com/post/how-to-create-bash-aliases/) *^please note if you use another shell than bash you will need to look up how to do it in that shell^* [Powershell Guide for alias](https://stackoverflow.com/questions/24914589/how-to-create-permanent-powershell-aliases) Once you've created an alias for the program you need to set an env variable (author_file) in your shell. This should be the path pointing to your author.txt file For bash you just need to add this to your .bashrc file: ``` export author_file='path/to/your/aurhor.txt' ``` [Powershell guide for env variable](https://stackoverflow.com/a/714918) *Please note that the syntax line at the top of the author.txt file should not be deleted and that you must add at least one author to the file to run the program* you can now run it using the alias shorthand you assigned to it ## Usage: The CLI has two modes, the CLI commands and the TUI below are guides on how to use both ### TUI To launch the TUI run the program with no args ``` $ cocommit ``` From here you will be asked to write a commit message and then select authors from a list. This creates the same message as the CLI way of doing it but is a bit nicer to work with. The TUI has lots of keybinds that can be seen on the list view by pressing `?`. You can create authors, add temp authors or do all of the usual selections like negated selections or select all. Below is a small video showing a run through of the TUI. ### CLI ``` $ cocommit "message"