776 lines
27 KiB
Bash
Executable File
776 lines
27 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
help-table() {
|
|
local cmd_width=30
|
|
local opt_width=26
|
|
local desc_width=70
|
|
local column="| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n"
|
|
|
|
printf "$column" 'Command' 'Option' 'Description'
|
|
echo "|$(printf '%*s' $((cmd_width + 2)) '' | tr ' ' '-')|$(printf '%*s' $((opt_width + 2)) '' | tr ' ' '-')|$(printf '%*s' $((desc_width + 2)) '' | tr ' ' '-')|"
|
|
# Env
|
|
printf "$column" 'version' '' 'Show tool versions.'
|
|
# Galaxy
|
|
printf "$column" 'build-galaxy' '' 'Create tarball of collection.'
|
|
printf |