cmd

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package cmd manage the first level of command of the CLI.

Index

Constants

This section is empty.

Variables

View Source
var (

	// CacheOnly flags to force the usage of the cache not the database source
	CacheOnly bool
)

Functions

func Apply

func Apply(cookbook recipe.Cooker, names []string, types []string, args []string) error

Apply will run only the recipes with Apply type.

func Execute

func Execute(c context.Context) error

Execute the corresponding cobra sub-command.

func GetLogger

func GetLogger() *logrus.Logger

GetLogger returns the logger instancied at initialization phase.

func InitConfig

func InitConfig()

InitConfig reads in config file and ENV variables if set.

func Sync

func Sync(cookbook recipe.Cooker, names []string, args []string) error

Sync will run only the recipes with sync type.

func Validate

func Validate(cookbook recipe.Cooker, names []string, args []string) error

Validate will validate the datasources and recipes files.

Types

This section is empty.

Directories

Path Synopsis
Package common provides the utility functions and type needed by all specialized step packages
Package common provides the utility functions and type needed by all specialized step packages

Jump to

Keyboard shortcuts

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