Expand description
CLI-specific utility functions. Utility functions for the Zoi CLI.
Structs§
- Package
Completion - Represents a package completion entry.
Functions§
- ask_
for_ confirmation - Asks the user for confirmation with a prompt.
- check_
license - Checks the license of a package and prints warnings if it’s not OSI-approved or has issues.
- check_
path - Checks if the Zoi bin directory is in the current PATH and prints a warning if not.
- format_
version_ full - Formats a full version string including the commit hash.
- format_
version_ summary - Formats a version summary with branch, status, and number.
- get_
all_ packages_ for_ completion - Gets all packages for shell completion.
- is_
admin - Checks if the current process has administrative or root privileges.
- print_
aligned_ info - Prints information aligned with a fixed width for the key.
- print_
info - Prints information with a key and value.
- print_
repo_ warning - Prints a warning if the package is from a non-standard repository.
- setup_
path - Sets up the PATH environment variable for the given scope.
- symlink_
file - Creates a symlink to a file, replacing any existing file or symlink.