Potato is a command line tool which helps you to keep the development configs and settings of your Mac as a programmer/developer/coder safe in your GitHub that you can later use to set up a new machine. Also, Potato is fully configurable so you can track anything from your .vimrc to all pip packages installed in your system.
Because it seems exciting to develop something in Golang.
Make sure Go is installed in your system.
To install run -
go get github.com/horcrux2301/Potato
Or you can use Homebrew -
brew install horcrux2301/tap/Potato
Add a setting
potato addto add a new setting to potato.
Each new setting takes in 4 arguments -
- Name of the setting (eg - pip)
- Description of the setting (eg - Keeps track of all the pip3 packages installed)
- Command that needs to be executed for the setting (eg -
- Filename in which the settings will be saved (eg - pip3.txt)
Delete a setting
potato deleteto delete a setting from potato.
You need to enter the name of the setting in order to delete it.
Display all settings
potato displayto display all the current settings in Potato.
Update Git Directory
Potato also needs to know the directory where all the files are to be saved. Run
potato gitto update the directory path. If the directory has git initialized and remote tracking enabled automatic git push to the master will also happen.
potato runto execute all the commands.
Subscribe to Golang Example
Get the latest posts delivered right to your inbox