cmd

package
v0.0.0-...-8e0a011 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cmd contains definitions for executable commands and is responsible for the validation of flags and arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApp

func AddApp() cli.Command

AddApp generates a cli command that creates new mona apps within a project.

func Build

func Build() cli.Command

Build generates a cli command that builds any modified apps within the project.

func Diff

func Diff() cli.Command

Diff generates a cli command that prints out apps that have changed within the current project.

func Init

func Init() cli.Command

Init generates a cli command for initializing new mona projects.

func Lint

func Lint() cli.Command

Lint generates a command that lints all new/modified apps within the project.

func Run

func Run() cli.Command

Run generates a cli command that lints, tests and builds any modified apps within the project.

func Test

func Test() cli.Command

Test generates a command that runs tests for all apps with changes.

Types

type ActionFunc

type ActionFunc func(ctx *cli.Context, cfg command.Config) error

The ActionFunc type is a method that takes a CLI context and the current project as an argument and returns a single error.

Jump to

Keyboard shortcuts

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