naming

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package naming holds the CLI's one naming rule, shared by the command tree and by leaflow-doctor. Duplicating it would mean the collision check ran against a different rule than the tree it is checking.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kebab

func Kebab(value string) string

Kebab lowercases an identifier and hyphenates word boundaries.

It is the only naming rule in this CLI, and it is deliberately a mechanical transform rather than an interpretation. An operationId is already kebab (`create-disk` maps to itself); a tag is CamelCase (`FloatingIP` becomes `floating-ip`).

Nothing is inferred from the value. Splitting `create-disk` into a `disk` group and a `create` verb would read better, but it would depend on a naming habit upstream, and when that habit changed the command name would move silently underneath scripts that already use it. Command names here can only change when the contract's own identifiers change — which breaks the generated SDKs too, so it is not something that happens quietly.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL