-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polkadot-sdk-docs
: Use command_macro!
#6194
Comments
What do you think of replacing with https://github.com/rust-shell-script/rust_cmd_lib? |
If it delivers the same outcome, then yes it indeed seems better. |
Adding some context from my investigations around testing commands that appear in crate-level docs, so that they also look similar to what one would run in a shell: #5954 (comment). |
Taking this one ☝️ |
Great! This is a good reference entry point showing how to do it:
|
Let me re-frame this to see if I correctly understand the assignment:
|
I would like to add that I also tried using
|
Hey @ndkazu. Can you please give a sample of the |
@iulianbarbu , I am using this example to use
|
Oh, I see. The example you're using is fine, but lemme respond to your qs below:
|
# Description **Understood assignment:** Initial assignment description is in #6194. In order to Simplify the display of commands and ensure they are tested for chain spec builder's `polkadot-sdk` reference docs, find every occurrence of `#[docify::export]` where `process:Command` is used, and replace the use of `process:Command` by `run_cmd!` from the `cmd_lib crate`. --------- Co-authored-by: Iulian Barbu <[email protected]>
Issue can now be closed 😺 |
Thanks @ndkazu ! |
# Description **Understood assignment:** Initial assignment description is in #6194. In order to Simplify the display of commands and ensure they are tested for chain spec builder's `polkadot-sdk` reference docs, find every occurrence of `#[docify::export]` where `process:Command` is used, and replace the use of `process:Command` by `run_cmd!` from the `cmd_lib crate`. --------- Co-authored-by: Iulian Barbu <[email protected]>
to have a better docify version of commands. IN other words, find all instances of
#[docify::export] process:Command
, and replace with https://github.com/krdln/command-macros.The text was updated successfully, but these errors were encountered: