GomniRun is a cross-platform script execution tool with a GUI (Fyne) and CLI.
It allows you to set variables, commands, and arguments dynamically and saves them in a config.json file.
- ✅ Cross-platform GUI (Fyne) & CLI support.
- ✅ Stores last-used variables in
config.json. - ✅ Supports different variable types (
string,bool,file,directory). - ✅ Fully configurable command execution.
- ✅ Dark & Light mode support with high-contrast output.
- ✅ GitHub integration & open-source!
(Add screenshots here if possible!)
Ensure you have Go installed (Go 1.21+):
go versionIf not installed, download it from Go's official site.
Then, install the Fyne dependency:
go get fyne.io/fyne/v2git clone https://github.com/<your-username>/GomniRun.git
cd GomniRungo run cmd/fyne-ui/main.gogo run cmd/cli/main.goGomniRun reads from a config.json file that stores command templates and variables.
Example config.json:
{
"command": "bash {script} -variable={var1} -other-variable={var2}",
"variables": {
"script": { "type": "file", "value": "./test_script.sh" },
"var1": { "type": "string", "value": "hello" },
"var2": { "type": "string", "value": "world" }
},
"overwrite": true
}{script}→ Points to the script file.{var1}→ Holds the first variable (hello).{var2}→ Holds the second variable (world)."overwrite": true→ Saves last-used values automatically.
You can create a simple test script (test_script.sh) to check execution:
#!/bin/bash
echo "🚀 Test Script Executed!"
echo "Variable: $1"
echo "Other Variable: $2"Make it executable:
chmod +x test_script.shUpdate config.json and run the app!
go build -o builds/gomnirun main.go
go build -o builds/gomnirun-cli ./cmd/cli/
go build -o builds/gomnirun-ui ./cmd/fyne-ui/
🔥 Want to improve GomniRun? Contributions are welcome!
- Fork the repo
- Create a feature branch
- Submit a PR! 🎉
This project is licensed under the MIT License.
Feel free to use and modify it as needed!
If you like this project, give it a ⭐ on GitHub!
Happy coding! 🚀🔥