pub const RED: &str = "\x1b[31m";
pub const GREEN: &str = "\x1b[32m";
pub const YELLOW: &str = "\x1b[33m";
pub const BLUE: &str = "\x1b[34m";
pub const RESET: &str = "\x1b[0m";
pub use inquire;
pub use crate::error_mod::{Error, Result};
pub use crate::auto_shell_mod::ShellOutput;
pub use crate::auto_cargo_toml_mod::CargoToml;
pub trait CargoTomlPublicApiMethods {
fn read() -> Result<Self>
where
Self: Sized;
fn package_name(&self) -> String;
fn package_version(&self) -> String;
fn package_authors_string(&self) -> String;
fn package_author_name(&self) -> String;
fn package_repository(&self) -> Option<String>;
fn package_description(&self) -> Option<String>;
fn package_homepage(&self) -> String;
fn workspace_members(&self) -> Option<Vec<String>>;
fn github_owner(&self) -> Option<String>;
fn package_keywords(&self) -> Vec<String>;
}
pub use crate::auto_shell_mod::ShellCommandLimitedDoubleQuotesSanitizer;
pub trait ShellCommandLimitedDoubleQuotesSanitizerTrait {
fn new(template: &str) -> Result<Self>
where
Self: Sized;
fn arg(&mut self, placeholder: &str, value: &str) -> Result<&mut Self>;
fn arg_secret(&mut self, placeholder: &str, value: &secrecy::SecretString) -> Result<&mut Self>;
fn run(&self) -> Result<()>;
}
pub fn find_from(text: &str, from_pos: usize, find: &str) -> Result<usize> {
crate::utils_mod::find_from(text, from_pos, find)
}
pub fn find_pos_end_data_before_delimiter(md_text_content: &str, pos: usize, delimiter: &str) -> Result<usize> {
crate::utils_mod::find_pos_end_data_before_delimiter(md_text_content, pos, delimiter)
}
pub fn find_pos_start_data_after_delimiter(md_text_content: &str, pos: usize, delimiter: &str) -> Result<usize> {
crate::utils_mod::find_pos_start_data_after_delimiter(md_text_content, pos, delimiter)
}
pub fn concatenate_vec_to_string(vec: &[String], delimiter: &str) -> String {
crate::utils_mod::concatenate_vec_to_string(vec, delimiter)
}
pub fn traverse_dir_with_exclude_dir(dir: &std::path::Path, find_file: &str, exclude_dirs: &[String]) -> Result<Vec<String>> {
crate::utils_mod::traverse_dir_with_exclude_dir(dir, find_file, exclude_dirs)
}
pub fn auto_cargo_toml_to_md() -> Result<()> {
crate::auto_cargo_toml_to_md_mod::auto_cargo_toml_to_md()
}
pub fn auto_check_micro_xml(path_to_html_pages: &str) -> Result<()> {
crate::auto_check_micro_xml_mod::auto_check_micro_xml(path_to_html_pages)
}
pub fn auto_delete_old_js_snippets() -> Result<()> {
crate::auto_delete_old_js_snippets_mod::auto_delete_old_js_snippets()
}
pub fn completion_return_one_or_more_sub_commands(sub_commands: Vec<&str>, word_being_completed: &str) {
crate::auto_helper_functions_mod::completion_return_one_or_more_sub_commands(sub_commands, word_being_completed)
}
pub fn exit_if_not_run_in_rust_project_root_directory() {
crate::auto_helper_functions_mod::exit_if_not_run_in_rust_project_root_directory()
}
pub fn run_shell_command_static(shell_command: &'static str) -> Result<()> {
crate::auto_shell_mod::run_shell_command_static(shell_command)
}
pub fn run_shell_command(shell_command: &str) -> Result<()> {
crate::auto_shell_mod::run_shell_command(shell_command)
}
pub fn auto_lines_of_code(link: &str) -> Result<()> {
crate::auto_lines_of_code_mod::auto_lines_of_code(link)
}
pub fn auto_md_to_doc_comments() -> Result<()> {
crate::auto_md_to_doc_comments_mod::auto_md_to_doc_comments()
}
pub fn auto_plantuml(repo_url: &str) -> Result<()> {
crate::auto_plantuml_mod::auto_plantuml(repo_url)
}
pub fn auto_plantuml_for_path(path: &std::path::Path, repo_url: &str) -> Result<()> {
crate::auto_plantuml_mod::auto_plantuml_for_path(path, repo_url)
}
pub fn hash_text(text: &str) -> String {
crate::auto_plantuml_mod::hash_text(text)
}
pub fn auto_semver_increment_minor() -> Result<()> {
crate::auto_semver_mod::auto_semver_increment_minor()
}
pub fn auto_semver_increment_minor_forced() -> Result<()> {
crate::auto_semver_mod::auto_semver_increment_minor_forced()
}
pub fn auto_semver_increment_patch() -> Result<()> {
crate::auto_semver_mod::auto_semver_increment_patch()
}
pub fn auto_semver_increment_patch_forced() -> Result<()> {
crate::auto_semver_mod::auto_semver_increment_patch_forced()
}
pub fn auto_version_increment_semver_or_date() -> Result<()> {
crate::auto_semver_or_date_mod::auto_version_increment_semver_or_date()
}
pub fn auto_version_increment_semver_or_date_forced() -> Result<()> {
crate::auto_semver_or_date_mod::auto_version_increment_semver_or_date_forced()
}
pub fn auto_version_from_date() -> Result<()> {
crate::auto_version_from_date_mod::auto_version_from_date()
}
pub fn auto_version_from_date_forced() -> Result<()> {
crate::auto_version_from_date_mod::auto_version_from_date_forced()
}
pub fn auto_doc_tidy_html() -> Result<()> {
crate::auto_doc_tidy_html_mod::auto_doc_tidy_html()
}
pub fn git_has_remote() -> Result<bool> {
crate::auto_git_mod::git_has_remote()
}
pub fn git_is_local_repository() -> Result<bool> {
crate::auto_git_mod::git_is_local_repository()
}
pub fn run_shell_command_output(shell_command: &str) -> Result<ShellOutput> {
crate::auto_shell_mod::run_shell_command_output(shell_command)
}
pub fn run_shell_command_success(shell_command: &str) -> Result<bool> {
crate::auto_shell_mod::run_shell_command_success(shell_command)
}
pub fn home_dir() -> Result<std::path::PathBuf> {
crate::auto_helper_functions_mod::home_dir()
}
pub fn tilde_expand_to_home_dir_utf8(path_str: &str) -> Result<camino::Utf8PathBuf> {
crate::auto_helper_functions_mod::tilde_expand_to_home_dir_utf8(path_str)
}
pub fn git_tag_sync_check_create_push(version: &str) -> Result<String> {
crate::auto_github_mod::git_tag_sync_check_create_push(version)
}
pub fn body_text_from_releases_md() -> Result<String> {
crate::auto_github_mod::body_text_from_releases_md()
}
pub fn create_new_version_in_releases_md(release_name: &str) -> Result<()> {
crate::auto_github_mod::create_new_version_in_releases_md(release_name)
}
pub fn now_utc_date_iso() -> String {
crate::utils_mod::now_utc_date_iso()
}
pub fn copy_folder_files_into_module(
folder_path: &std::path::Path,
module_path: &std::path::Path,
ext_for_binary_files: &[&str],
exclude_big_folders: &[String],
) -> Result<()> {
crate::auto_copy_files_to_strings_mod::copy_folder_files_into_module(
folder_path,
module_path,
ext_for_binary_files,
exclude_big_folders,
)
}
pub fn add_message_to_unreleased(message: &str) -> Result<()> {
crate::auto_github_mod::add_message_to_unreleased(message)
}
pub fn auto_playground_run_code() -> Result<()> {
crate::auto_playground_mod::auto_playground_run_code()
}
pub fn new_local_repository(message: &str) -> Result<()> {
crate::auto_git_mod::new_local_repository(message)
}