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
Run
potato add
to 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 -
pip3 freeze
) - Filename in which the settings will be saved (eg - pip3.txt)
-
Delete a setting
Run
potato delete
to delete a setting from potato. You need to enter the name of the setting in order to delete it.
-
Display all settings
Run
potato display
to 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 git
to update the directory path. If the directory has git initialized and remote tracking enabled automatic git push to the master will also happen.
-
Run potato
Run
potato run
to execute all the commands.
-
You can refer here to get an idea of settings that you might want to add to Potato.
-
Backup of my personal system - Github Repo
-
The
settings.json
file is stored by default as$HOME/settings.json
.
Submit a PR or open an Issue in the repo.