Potato是一个命令行工具,可以帮助您将Mac的开发配置和设置保存在GitHub中

Potato是一个命令行工具,可以帮助您将Mac的开发配置和设置保存在GitHub中

Go 命令行/控制台

访问GitHub主页

共33Star

详细介绍

Build Status Go Report Card Stars License

What is Potato?

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.

Why GO?

Because it seems exciting to develop something in Golang.

Installing Potato

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

Using Potato

  1. Add a setting

    Run potato add to add a new setting to potato. Each new setting takes in 4 arguments -

    1. Name of the setting (eg - pip)
    2. Description of the setting (eg - Keeps track of all the pip3 packages installed)
    3. Command that needs to be executed for the setting (eg - pip3 freeze)
    4. Filename in which the settings will be saved (eg - pip3.txt)

  2. 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.

  1. Display all settings

    Run potato display to display all the current settings in Potato.

  1. 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.

  1. Run potato

    Run potato run to execute all the commands.

Miscellaneous

  1. You can refer here to get an idea of settings that you might want to add to Potato.

  2. Backup of my personal system - Github Repo

  3. The settings.json file is stored by default as $HOME/settings.json.

Suggestions/Issue ?

Submit a PR or open an Issue in the repo.

推荐源码