initcmd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitCmd = &cobra.Command{
	Use:   "init",
	Short: "Initialize project configuration",
	Long: `Create a .gpc.yaml configuration file in the current directory.

This file stores project-level defaults (package name, default track,
output format) so you don't need to pass them as flags every time.

The CLI automatically detects .gpc.yaml in the current directory
or any parent directory.`,
	RunE: runInit,
}

InitCmd initializes a project configuration file

Functions

func FindProjectConfig

func FindProjectConfig(dir string) string

FindProjectConfig walks up from dir to find .gpc.yaml

Types

This section is empty.

Jump to

Keyboard shortcuts

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