-
Notifications
You must be signed in to change notification settings - Fork 36
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
READY (willbe): add readme.headers.generate
command
#1146
Conversation
use crate::path::AbsolutePath; | ||
|
||
/// Aggregates two commands: `generate_modules_headers` & `generate_main_header` | ||
pub fn readme_headers_generate( ( _, _ ) : ( wca::Args, wca::Props ) ) -> Result< () > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
report!
readme.headers.generate
commandreadme.headers.generate
command
@SRetip get completed |
what is with this? @SRetip |
I can't complete this |
readme.headers.generate
commandreadme.headers.generate
command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me 👍
But look through the messages below and make sure everything is okay
@@ -114,21 +178,40 @@ mod private | |||
/// [![docs.rs](https://raster.shields.io/static/v1?label=docs&message=online&color=eee&logo=docsdotrs&logoColor=eee)](https://docs.rs/wtools) | |||
/// <!--{ generate.main_header.end }--> | |||
/// ``` | |||
pub fn readme_header_renew( path : AbsolutePath ) -> Result< () > | |||
pub fn readme_header_renew( path : AbsolutePath ) -> Result< MainHeaderRenewReport, ( MainHeaderRenewError, MainHeaderRenewReport ) > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to swap the error and report to follow the sequence of the other commands, wouldn't it?
{ | ||
use std::fmt::{Display, Formatter}; | ||
use error_tools::{ Result, err }; | ||
use crate::_path::AbsolutePath; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be not in line with the convention
use error_tools::{ Result, err }; | ||
use crate::_path::AbsolutePath; | ||
use crate::action; | ||
use crate::action::{MainHeaderRenewReport, ModulesHeadersRenewReport}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing spaces
{ | ||
report.main_header_renew_report = r; | ||
} | ||
Err( ( error, r) ) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err( ( error, r) ) => | |
Err( ( error, r ) ) => |
{ | ||
report.modules_headers_renew_report = r; | ||
} | ||
Err( ( error, r) ) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err( ( error, r) ) => | |
Err( ( error, r ) ) => |
readme.headers.generate
commandreadme.headers.generate
command
readme.headers.generate
commandreadme.headers.generate
command
Add new command ( aggregation of
readme.modules.headers.generate
&readmde.header.generate
)