Replies: 1 comment 1 reply
-
Mission This was quite a lot of work, but I am satisfied with the result. The changes are in master branch, and the edge version - it would be nice if someone else can test it to see see if it makes sense.
This gives me peace of mind knowing that I do not need to update the templates based on every single user's opinion, and yet they can still achieve their optimum output if they choose to. The unreleased documentation is here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Requests to be able to create documentation from the bashly.yml file were raised several times:
Related PRs:
bashly add render_markdown
library #419bashly add render_mandoc
library #422Since it could be quite complex to support all use cases, and all of bashly's features, I would like to propose this in order to gauge interest:
bashly render TEMPLATE
command, which will accept a path to a user-provided template.bashly add markdown-template
andbashly add manpage-template
that will provide a basic starting point for the developers to update as they see fit.This will allow fully customizable output, for documentation, or anything else. It can even be used for generating scripts in other languages if someone chooses to do so...
The template will be in gtx format - the same format used by bashly itself.
Example Template
For orientation, anything that starts with
>
is an output, and anything else is Ruby code.Test script
This will be the code behind the future
bashly render TEMPLATE
command:Sample output
Show markdown output
cli
Sample application
Commands
download
Download a file
Usage:
cli download SOURCE [TARGET] [OPTIONS]
Arguments
source
target
Flags
--force
upload
Upload a file
Usage:
cli upload SOURCE [OPTIONS]
Arguments
source
Flags
--user
--password
Any thoughts or suggestions are welcome.
Beta Was this translation helpful? Give feedback.
All reactions