Skip to main contentCrate hyperlane_cli
Source pub use ::log;
- output_macro
- Macro for outputting colored text to the terminal.
- println_error
- Prints an error message with red background and white text.
- println_success
- Prints a success message with green background and white text.
- println_warning
- Prints a warning message with yellow background and white text.
- Args
- Parsed command line arguments
- ColorContrast
- Provides utilities for calculating and ensuring color contrast ratios.
- ColorOutput
- Represents a colored text output with formatting options.
- ColorOutputBuilder
- Builder pattern for constructing ColorOutput configurations.
- ColorOutputList
- Represents a list of ColorOutput configurations for sequential execution.
- ColorOutputListBuilder
- Builder pattern for constructing ColorOutputList configurations.
- Logger
- Custom logger implementation for the hyperlane-cli.
- NewProjectConfig
- Configuration for creating a new project
- Package
- Package information in monorepo
- PublishResult
- Publish result for a single package
- Task
- Represents a collection of text tasks to be executed sequentially.
- TemplateConfig
- Configuration for template generation
- Text
- Configurable text display with color, background and style options.
- Version
- Parsed version components following semantic versioning
- BumpVersionType
- Types of version bumps
- Color
- Predefined color constants for easy text formatting.
- ColorType
- Represents different types of colors that can be used for text formatting.
- CommandType
- Available commands
- DisplayType
- Specifies whether color applies to text or background.
- ModelSubType
- Model subtypes for organizing data structures
- NewError
- Errors that can occur during project creation
- PublishError
- Error types for publish operation
- TemplateError
- Errors that can occur during template generation
- TemplateType
- Types of template components that can be generated
- COMMON_YEAR
- Common Year
- DAYS
- Days
- LEAP_YEAR
- Leap Year
- MONTHS
- Months
- DERIVE_REGEX
- Regex pattern to match derive attribute
- ColorDisplay
- Trait for converting colors to their ANSI escape sequences.
- __println_text
- calculate_time
- Calculates the current year, month, day, hour, minute, second, millisecond and microsecond.
- color256_bg_color
- Generates color code for background colors in 256 colors.
- color256_fg_color
- Generates color code for foreground colors in 256 colors.
- compute_date
- Computes the year, month, and day from days since Unix epoch (1970-01-01).
- date
- Gets the current day, without the time.
- day
- Gets the current day.
- execute_bump
- Read and update version in Cargo.toml
- execute_fmt
- Execute fmt command
- execute_new
- Execute new command to create a project from template
- execute_publish
- Execute publish command for all packages in workspace
- execute_template
- Execute template generation
- execute_watch
- Execute watch command using notify crate to monitor file changes
and re-run cargo run when source files are modified.
- format_path
- Format code at specific path
- from_env_var
- Gets the time zone offset from the system environment variable.
- gmt
- Gets the current date and time in GMT format.
- hour
- Gets the current hour.
- is_leap_year
- Determines if a year is a leap year.
- micros
- Gets the current timestamp in microseconds.
- millis
- Gets the current timestamp in milliseconds.
- minute
- Gets the current minute.
- month
- Gets the current month.
- output
- Executes the output operation with the given formatting.
- output_list
- Executes a sequence of output operations.
- parse_args
- Parse command line arguments
- print_help
- Print help message
- print_version
- Print version
- rgb_bg_color
- Generates color code for true color background colors.
- rgb_fg_color
- Generates color code for true color foreground colors.
- second
- Gets the current second.
- time
- Gets the current time, including the date and time.
- time_micros
- Gets the current time with microseconds, including the date and time.
- time_millis
- Gets the current time with milliseconds, including the date and time.
- timestamp
- Gets the current timestamp in seconds since Unix epoch.
- timestamp_micros
- Gets the current timestamp in microseconds since Unix epoch.
- timestamp_millis
- Gets the current timestamp in milliseconds since Unix epoch.
- year
- Gets the current year.