Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π chore(package.json): update luminar dependency to version 0.0.5
β¨ feat(cli.ts): add support for commands and command options β¨ feat(command.ts): add command function to create commands with options and parameters β¨ feat(index.ts): export cli, command, and Renderers The luminar dependency has been updated to version 0.0.5. The cli.ts file now supports commands and command options. The command.ts file has been added to create commands with options and parameters. The index.ts file now exports cli, command, and Renderers. π feat(generate-help.ts, index.ts, render-luminars.ts): add generateHelp function and renderLuminars utility function to render help documentation The generateHelp function generates a help document node array based on the provided options. It generates the name and version, description, usage, commands, luminars, examples, and aliases sections of the help document. The renderLuminars function is a utility function that renders the luminars section of the help document. It takes in a Luminars object and returns a table of luminars with their descriptions. π feat(renderers.ts, types.ts, convert-case.ts, is-script-name.ts): add new files and functions to support rendering help documentation The `renderers.ts` file contains a class that defines methods for rendering different types of help documentation. The `types.ts` file contains interfaces and types used in the script, including the `HelpDocumentNode` interface used to define the structure of the help documentation. The `convert-case.ts` file contains functions for converting strings to camelCase and kebab-case. The `is-script-name.ts` file contains a regular expression pattern used to validate script names. These changes were made to support the rendering of help documentation for the script.
- Loading branch information