clishared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package clishared holds helpers shared across krit's verb-specific CLI packages (internal/cli/<verb>/).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanModuleKotlinFiles

func ScanModuleKotlinFiles(mod *module.Module) []*scanner.File

ScanModuleKotlinFiles finds and parses all .kt files under the module's source roots.

func SimpleName

func SimpleName(fqn string) string

SimpleName extracts the last dot-separated segment of an FQN, stripping any trailing parenthesised arity/signature.

func SplitPositional

func SplitPositional(args []string, maxVal int) (positional, rest []string)

SplitPositional pulls up to max leading non-flag arguments out of args and returns them alongside the remaining (flag) arguments. Once a flag appears, all subsequent arguments are treated as flag args.

Types

This section is empty.

Jump to

Keyboard shortcuts

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