project

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Schema

func Schema() *jsonschema.Schema

Schema generates a jsonscema for a project Config

Types

type Config

type Config struct {
	Log    LoggingConfig `json:"log" yaml:"log" jsonschema_description:"logging options"`
	Lint   LintConfig    `json:"lint" yaml:"lint" jsonschema_description:"options for commands that lint"`
	Ignore []string      `` /* 137-byte string literal not displayed */
}

Config are all the things for crie cli

func (*Config) NewProjectConfigFile

func (cli *Config) NewProjectConfigFile(path string) error

NewProjectConfigFile Creates the project file locally

type LintConfig

type LintConfig struct {
	Continue      bool   `json:"continue" yaml:"continue"`
	Passes        bool   `json:"passes" yaml:"passes"`
	GitTarget     string `json:"gitTarget" yaml:"gitTarget"`
	GitDiff       bool   `json:"gitDiff" yaml:"gitDiff"`
	Lang          string `json:"lang" yaml:"lang"`
	StrictLogging bool   `json:"-" yaml:"-"`
}

LintConfig is a grouping of settings that affect crie directly

type LoggingConfig

type LoggingConfig struct {
	Quiet   bool `json:"quiet" yaml:"quiet" jsonschema_description:"disable all output except for errors"`
	Verbose bool `json:"verbose" yaml:"verbose" jsonschema_description:"enable debug logging"`
	Trace   bool `json:"trace" yaml:"trace" jsonschema_description:"(hidden opt) enable all logging (very very verbose)"`
	JSON    bool `json:"json" yaml:"json" jsonschema_description:"change format to json structured logging"`
}

LoggingConfig is a grouping of log settings

Jump to

Keyboard shortcuts

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