cmd

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package cmd provides shared utilities for internal CLI commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveProjectPath

func ResolveProjectPath(p *props.Props, path string) string

ResolveProjectPath resolves the project root from the given path. If path is "." (the default), it attempts workspace detection by walking up from CWD to find a .gtb/manifest.yaml. If detection fails, the original path is returned unchanged (the user may be generating a new project).

Types

This section is empty.

Directories

Path Synopsis
Package generate provides Cobra commands for scaffolding new CLI projects (project/skeleton), adding commands to existing projects, converting implementations to AI-generated code, and adding flags to commands — all driven by manifest definitions and interactive wizards.
Package generate provides Cobra commands for scaffolding new CLI projects (project/skeleton), adding commands to existing projects, converting implementations to AI-generated code, and adding flags to commands — all driven by manifest definitions and interactive wizards.
Package regenerate provides Cobra commands for regenerating project command registration files (cmd.go) and manifests from existing project structure, without overwriting implementation files unless explicitly forced.
Package regenerate provides Cobra commands for regenerating project command registration files (cmd.go) and manifests from existing project structure, without overwriting implementation files unless explicitly forced.
Package remove provides the Cobra command for removing commands and their associated generated files from a project, updating the manifest accordingly.
Package remove provides the Cobra command for removing commands and their associated generated files from a project, updating the manifest accordingly.
Package root provides the internal root command for the gtb CLI itself, registering the generate, regenerate, and remove subcommand groups.
Package root provides the internal root command for the gtb CLI itself, registering the generate, regenerate, and remove subcommand groups.

Jump to

Keyboard shortcuts

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