Streamlines your project management workflow, simplifies syncing multiple projects from remote repositories, helps build and run projects on a local machine, and allows for the installation, uninstallation, and updating of development software and tools. No need to remember longer commands. Share your entire development setup with your work buddies or back up your entire development setup by sharing $HOME/pancake.yml
.
$ pancake list # View the list of all projects you are working on
$ pancake sync # Sync multiple projects from the remote repository
$ pancake open <project_name> # Open a specific project in IDE mentioned in config file
$ pancake build <project_name> # Build a project
$ pancake run <project_name> # Start a project on the local machine
$ pancake monitor # Show details about the port, process PID, and uptime
$ pancake tool install tree # Install a tool via pancake
$ pancake tool upgrade tree # Update tools via pancake
It keeps all project files in the $HOME/pancake
folder. Sharing this single file enables the sharing of your entire developer setup, making backups and migration from one machine to another easy.
For migration and sharing projects, just copy pancake.yml to your user home location and run:
$ pancake init
Everything your project needs will be installed. All the build and run configurations will already be in the configuration file, and it will sync the project from your remote repository all at once.
To install the tool on macOS or Linux, run the following command in your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/a6h15hek/pancake/main/macos_linux.sh)" install
To uninstall the tool, use the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/a6h15hek/pancake/main/macos_linux.sh)" uninstall
To install the tool on Windows, open PowerShell and run the following command:
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/a6h15hek/pancake/main/windows.ps1')) install
To uninstall the tool, use the following command in PowerShell:
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/a6h15hek/pancake/main/windows.ps1')) uninstall
You can install the tool using go install
:
go install github.com/a6h15hek/pancake@latest
Alternatively, download the pre-built binaries from the Releases page.
$ pancake help # prints the version, edit config commands
$ pancake project # prints all project commands
$ pancake tool # prints all tool commands
Windows (PowerShell)
Step 1: Open PowerShell profile and Run: notepad $PROFILE
Step 2: Add: Set-Alias pc pancake
Step 3: Save, close and Run Command: . $PROFILE
macOS and Linux
Step 1: Open shell config file: nano ~/.bashrc
Step 2: Add: alias pc='pancake'
Step 3: Save, reload: source ~/.bashrc
\
Another feature in development is Pancake GPT, which allows users to write commands in natural language and convert them into actual commands. It utilizes GPT models to understand the user's natural language input, interpret it, create a corresponding command, and execute it.
$ pancake gpt <user_description_of_command>
pancake/
├── utils/
│ ├── constants.go
│ ├── functions.go
│ ├── structure.go
├── cmd/
│ ├── root.go
│ ├── project.go
│ ├── tools.go
├── main.go
├── go.mod
└── go.sum
go build
go install
pancake [args]
# Pancake Configuration File.
# Home directory for project storage
home: $HOME/pancake # For MacOS & Linux
#home: '%userprofile%/pancake' # For Windows
code_editor: code # Preferred code editor (code -> VS Code, idea -> IntelliJ IDE)
tools:
- tree
projects:
spring-boot:
remote_ssh_url: git@github.com:spring-guides/gs-spring-boot.git
run: cd gs-spring-boot/initial && mvn spring-boot:run
build: cd gs-spring-boot/initial && mvn clean install
june-gpt:
remote_ssh_url: git@github.com:suren-atoyan/react-pwa.git
type: web
port: "3000"
run: npm start
build: npm install
GOOS=linux GOARCH=amd64 go build -o pancake-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o pancake-darwin-amd64
GOOS=windows GOARCH=amd64 go build -o pancake-windows-amd64.exe
Thank you for visiting the Pancake repository! Feel free to fork and 🌟 the repository!