Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krish-r/scratchpad
Create a scratchpad to play/prototype with your favorite programming language.
https://github.com/krish-r/scratchpad
cli command-line go golang terminal
Last synced: about 2 months ago
JSON representation
Create a scratchpad to play/prototype with your favorite programming language.
- Host: GitHub
- URL: https://github.com/krish-r/scratchpad
- Owner: krish-r
- License: mit
- Created: 2023-01-10T04:52:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-10T06:17:57.000Z (about 2 years ago)
- Last Synced: 2024-06-21T02:07:57.959Z (7 months ago)
- Topics: cli, command-line, go, golang, terminal
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scratchpad
Create a scratchpad to play/prototype with your favorite programming language.
(Similar to IntelliJ's scratch files, but from the terminal.)**Supported Languages**: Bash, Go, Java, Javascript, Lua, Python, Rust
This CLI simply executes the initialization commands for these languages (check `mappings` in `lang.go`).
##### (**Please Note**: This assumes that the necessary tooling is already installed for the programming language.)
## Motivation
- Wanted to create a quick scratchpad file to explore some language features/prototype something from the terminal, but had to repeatedly do these tasks first -
- optionally create a directory
- type the initialization command (especially those long `java mvn` commands)
- I wanted to write something with the [Cobra][cobra] library :smile:## Install
```sh
go build -o ./bin/scratchpad .# Copy the binary somewhere in the $PATH
cp ./bin/scratchpad ~/.local/bin/scratchpad
```## Uninstall
```sh
rm -i $(which scratchpad)
```## Usage
```sh
scratchpad create --lang java --name "Scratch_Java"
# (or)
scratchpad create -l go -n "Go_Playground"
```[cobra]: https://github.com/spf13/cobra