ci

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CiCheckCmd = &cobra.Command{
		Use:   "ci",
		Short: "report checks in CI",
		Long:  `Reports and acts on pull requests from sql check output`,
		RunE: func(cmd *cobra.Command, args []string) error {
			if viper.ConfigFileUsed() != "" {

				configFlags := ciCheckFlags{}
				if err := viper.Unmarshal(&configFlags); err != nil {
					return fmt.Errorf(
						"Failure to unmarshal config file via viper: %w",
						err,
					)
				}

				if configFlags.InputDir != "" {
					flags.InputDir = configFlags.InputDir
				}

			}
			return ciCheckRun(cmd, args, flags)
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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