naming

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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