3 releases

0.1.2 Mar 17, 2024
0.1.1 Mar 17, 2024
0.1.0 Mar 17, 2024

#1332 in Command line utilities

35 downloads per month

MIT license

10KB
217 lines

glrun

Command line utility for cross platform scripts.

Example:

# script.gs
@windows
- echo "hello windows"
- explorer %USERPROFILE%
@linux
- echo "hello linux"
- ls ~
--
echo 'hellow'
echo 'world'
--
glrun script.gs

Usage:

gl1tch in ~/Projects/glrun λ glrun --help

Cross-Platform script command runner.

USAGE:
    glrun [OPTIONS] <script>

ARGS:
    <script>    Sets the script file or URL to use

OPTIONS:
    -h, --help        Print help information
    -v, --validate    Validate the script only, don't execute it
    -y, --yes         Do not ask for confirmation before running the script

Installation

You can simply install the application using cargo:

cargo install glrun

Dependencies

~14–25MB
~344K SLoC