HTML Forms
Because sometimes you have to give your powerful CLI tool to people who are afraid of the terminal. This command generates an HTML file with a form that maps to your arguments.
Usage
>
parseArger html-form ./script.sh --out ./form.html
The first argument is the file to process.
Configuration
- --command: The command string to execute (defaults to filename).
parseArger html-form ./script.sh --command "my-script-alias" - --action: Form action URL (default is empty).
parseArger html-form ./script.sh --action "/submit" - --parent-form: ID of the parent form for nested command structures.
- --form / --no-form: ID of the generated form (or disable form generation).
Styling (Classes)
The generator uses Bootstrap classes by default, but you can override them.
--form-class: Form HTML class.--input-container-class: Input container class (default:form-group).--input-class: Input class (default:form-control).--label-class: Label class (default:form-label).--select-class: Select class (default:form-select).--checkbox-container-class/--radio-container-class: Container for checkboxes/radios (default:form-check).--checkbox-class/--radio-class: Checkbox/radio input class (default:form-check-input).--checkbox-label-class/--radio-label-class: Checkbox/radio label class (default:form-check-label).
Features
- --button / --no-button: Display (or hide) the submit button (default: on).
- --js / --no-js: Create (or skip) the JavaScript for command building (default: on). Note:
--no-jsforces--no-result. - --result / --no-result: Display (or hide) the result container (default: on).