initcmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 6 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 .aw.yaml configuration file in the current directory.

This file stores project-level defaults so you don't have to specify
them on every command.`,
	RunE: runInit,
}

InitCmd creates a project configuration file

Functions

func FindProjectConfig

func FindProjectConfig(startDir string) string

FindProjectConfig searches for .aw.yaml in the current and parent directories

Types

type ProjectConfig

type ProjectConfig struct {
	Project  string `yaml:"project" json:"project"`
	Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty"`
	Output   string `yaml:"output,omitempty" json:"output,omitempty"`
}

ProjectConfig represents a project-level configuration file

Jump to

Keyboard shortcuts

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