Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions for the CLI

Functions§

build_client
Build a reqwest::Client configured with the standard mecha10-cli user agent.
strip_node_scope
Strip a @scope/name node identifier down to its bare short name. Plain (already-short) identifiers pass through unchanged.
to_pascal_case
Convert snake_case to PascalCase
to_snake_case
Convert PascalCase to snake_case