View on GitHub

goexec

golang + bash scripting + templating+ cli = 👍 https://gofunct.github.io/goexec/.

gofunct

GoExec

Author: Coleman Word coleman.word@gofunct.com

Download: go get github.com/gofunct/goexec/goexec

License: MIT

 _____       ______               
 / ____|     |  ____|              
| |  __  ___ | |__  __  _____  ___ 
| | |_ |/ _ \|  __| \ \/ / _ \/ __|
| |__| | (_) | |____ >  <  __/ (__ 
 \_____|\___/|______/_/\_\___|\___|
                                   

Getting Started goexec init

The default generated cli will print its usage if called without any subcommands. It should look like this:

Default Goexec Usage(generated): "your-goexec-cli"

A goexec cli comes with default subcommands built in.

Here is the usage for a goexec cli that was generated with the name “scripter”:

---> Change me to a longer descripton of your goexec cli <---

Usage:
  scripter [command]

Available Commands:
  debug       debug flags or current configuration
  help        Help about any command
  load        download all of your executable dependencies
  script      run bash scripts

Flags:
  -h, --help      help for scripter
      --version   version for scripter

Use "scripter [command] --help" for more information about a command.

Load Subcommands: "your-goexec-cli" load

download all of your executable dependencies

Usage:
  scripter load [command]

Available Commands:
  get         intelligently download folders/files from a remote url
  mod         download go mod executable dependencies

Flags:
  -h, --help   help for load

Debug Subcommands: "your-goexec-cli" debug

debug flags or current configuration

Usage:
  scripter debug [command]

Available Commands:
  config      debug configuration settings
  flags       debug current flag settings

Flags:
  -h, --help   help for debug

Configuration

Templating

ex: if you set name: “ » name.txt

it will create a name.txt file containing “Coleman Word”

Contributing

Feel free to open up any prs if you find any bugs!