fn task_docs() {
    auto_md_to_doc_comments();
    let cargo_toml = CargoToml::read();
    #[rustfmt::skip]
    let shell_commands = [
        "cargo doc --no-deps --document-private-items --open",
        // copy target/doc into docs/ because it is github standard
        "rsync -a --info=progress2 --delete-after target/doc/ docs/",
        "echo Create simple index.html file in docs directory",
        &format!("echo \"<meta http-equiv=\\\"refresh\\\" content=\\\"0; url={}/index.html\\\" />\" > docs/index.html",cargo_toml.package_name().replace("-","_")) ,
    ];
    run_shell_commands(shell_commands.to_vec());
    run_shell_command("cargo fmt");
    // message to help user with next task
    println!(
        r#"
After `cargo auto doc`, check `docs/index.html`. 
run `cargo auto test` for the last time
If ok, then 
run `cargo auto commit_and_push` with mandatory commit message
"#
    );
}
/// example how to call a list of shell commands and combine with Rust code
example how to call a list of shell commands and combine with Rust code
example how to call a list of shell commands and combine with Rust code
fn task_docs() {
    auto_md_to_doc_comments();
    let cargo_toml = CargoToml::read();
    #[rustfmt::skip]
    let shell_commands = [
        "cargo doc --no-deps --document-private-items --open",
        // copy target/doc into docs/ because it is github standard
        "rsync -a --info=progress2 --delete-after target/doc/ docs/",
        "echo Create simple index.html file in docs directory",
        &format!("echo \"<meta http-equiv=\\\"refresh\\\" content=\\\"0; url={}/index.html\\\" />\" > docs/index.html",cargo_toml.package_name().replace("-","_")) ,
    ];
    run_shell_commands(shell_commands.to_vec());
    run_shell_command("cargo fmt");
    // message to help user with next task
    println!(
        r#"
After `cargo auto doc`, check `docs/index.html`. 
run `cargo auto test` for the last time
If ok, then 
run `cargo auto commit_and_push` with mandatory commit message
"#
    );
}
fn task_docs ( ) { auto_md_to_doc_comments ( ) ; let cargo_toml = CargoToml :: read ( ) ; # [ rustfmt :: skip ] let shell_commands = [ " " , // copy target/doc into docs/ because it is github standard " " , " " , & format ! ( " \" \\ \" \\ \" \\ \" \\ \" \" " cargo_toml package_name ( ) replace ( " " " " ) ) , ] ; run_shell_commands ( shell_commands . to_vec ( ) ) ; run_shell_command ( " " ) ; // message to help user with next task println ! ( r#"
After `cargo auto doc`, check `docs/index.html`. 
run `cargo auto test` for the last time
If ok, then 
run `cargo auto commit_and_push` with mandatory commit message
"# ) ; }
example how to call a list of shell commands and combine with Rust code
example how to call a list of shell commands and combine with Rust code