command

package
v0.0.0-...-e7db92f Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package command serves as the main entry point to the tiyo application and its relevant primary sub-commands `assemble`, `flow`, `fill` and `syphon`

Index

Constants

View Source
const VERSION string = "v0.0.1a"

VERSION : The applications current version number

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Run : Main entry for the primary wrapper

func SetupLog

func SetupLog()

SetupLog : configure the primary application logging system

By default, the logging level is info but this can be controlled by the environment variable TIYO_LOG if a finer level of control is required.

func Usage

func Usage()

Usage : print usage information about the main application

Types

type Command

type Command interface {
	Init()
	Run() int
}

Command : define the main interface for sub-commands

Any primary subcommand executable by this wrapper needs to implement this interface.

Jump to

Keyboard shortcuts

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