app

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package app implements all commands of the application.

Index

Constants

This section is empty.

Variables

View Source
var (

	// RootCmd is the instance of the root of all commands.
	RootCmd = &cobra.Command{
		Use:           "orbit",
		Short:         "A cross-platform task runner for executing commands and generating files from templates",
		Long:          "A cross-platform task runner for executing commands and generating files from templates.",
		SilenceErrors: true,
		PersistentPreRun: func(cmd *cobra.Command, args []string) {
			if verbose {
				logger.SetLevel(logrus.InfoLevel)
			}

			if debug {
				logger.SetLevel(logrus.DebugLevel)
			}
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package context helps to populate the application context.
Package context helps to populate the application context.
Package error provides an implementation of the error interface used across the application.
Package error provides an implementation of the error interface used across the application.
Package generator implements a solution to parse a data-driven template and generate an output from it.
Package generator implements a solution to parse a data-driven template and generate an output from it.
Package helpers implements simple functions used across the application.
Package helpers implements simple functions used across the application.
Package logger implements a simple helper for displaying output to the user.
Package logger implements a simple helper for displaying output to the user.
Package runner implements a solution to run one or more tasks which have been defined in a configuration file (by default "orbit.yml").
Package runner implements a solution to run one or more tasks which have been defined in a configuration file (by default "orbit.yml").
Package version is used as a dead simple bridge between main and command packages.
Package version is used as a dead simple bridge between main and command packages.

Jump to

Keyboard shortcuts

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