commands

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 15 Imported by: 0

README

commands

import "github.com/slalombuild/fusion/internal/commands"

Index

Constants

const (
    EDITOR_VSCODE   = "vscode"
    EDITOR_INTELLIJ = "intellij"
)

func Graph

func Graph(ctx *Context, r templates.Renderer) error

type Context

type Context struct {
    Version  VersionFlag
    Verbose  VerboseFlag
    NoColor  NoColorFlag
    NoFormat NoFormatFlag
    Output   OutputFlag
}

type GenerateSnippetsCommand

type GenerateSnippetsCommand struct {
    Output  string `short:"o" xor:"output,install" required:"" type:"path" help:"Accepts '' for stdout or a filepath (Default stdout)"`
    Install bool   `short:"i" xor:"output,install" help:"Use this flag to install or update your fusion snippets in VS Code (intellij not supported)"`
    Editor  string `short:"e" required:"" enum:"vscode,intellij" help:"Specify which editor to generate snippets for. Current options are 'vscode' or 'intellij'"`
}
func (*GenerateSnippetsCommand) Run
func (g *GenerateSnippetsCommand) Run() error
func (*GenerateSnippetsCommand) Validate
func (g *GenerateSnippetsCommand) Validate() error

type NoColorFlag

NoColorFlag supports the no-color environment variable standard to skip colorful output https://no-color.org

type NoColorFlag bool
func (NoColorFlag) Bool
func (n NoColorFlag) Bool() bool

type NoFormatFlag

NoFormatFlag supports skipping the formatting

type NoFormatFlag bool
func (NoFormatFlag) Bool
func (n NoFormatFlag) Bool() bool

type OutputFlag

type OutputFlag io.Writer

type VerboseFlag

VerboseFlag is a flag with a hook that, if triggered, will set the debug loggers output to stdout.

type VerboseFlag bool
func (VerboseFlag) Bool
func (v VerboseFlag) Bool() bool

type VersionFlag

type VersionFlag string
func (VersionFlag) BeforeApply
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error
func (VersionFlag) Decode
func (v VersionFlag) Decode(ctx *kong.DecodeContext) error
func (VersionFlag) IsBool
func (v VersionFlag) IsBool() bool

Generated by gomarkdoc

Documentation

Index

Constants

View Source
const (
	EDITOR_VSCODE   = "vscode"
	EDITOR_INTELLIJ = "intellij"
)

Variables

This section is empty.

Functions

func Graph

func Graph(ctx *Context, r templates.Renderer) error

Types

type Context

type Context struct {
	Version  VersionFlag
	Verbose  VerboseFlag
	NoColor  NoColorFlag
	NoFormat NoFormatFlag
	Output   OutputFlag
}

type GenerateSnippetsCommand

type GenerateSnippetsCommand struct {
	Output  string `short:"o" xor:"output,install" required:"" type:"path" help:"Accepts '' for stdout or a filepath (Default stdout)"`
	Install bool   `` /* 129-byte string literal not displayed */
	Editor  string `` /* 141-byte string literal not displayed */
}

func (*GenerateSnippetsCommand) Run

func (g *GenerateSnippetsCommand) Run() error

func (*GenerateSnippetsCommand) Validate

func (g *GenerateSnippetsCommand) Validate() error

type NoColorFlag

type NoColorFlag bool

NoColorFlag supports the no-color environment variable standard to skip colorful output https://no-color.org

func (NoColorFlag) Bool

func (n NoColorFlag) Bool() bool

type NoFormatFlag

type NoFormatFlag bool

NoFormatFlag supports skipping the formatting

func (NoFormatFlag) Bool

func (n NoFormatFlag) Bool() bool

type OutputFlag

type OutputFlag io.Writer

type VerboseFlag

type VerboseFlag bool

VerboseFlag is a flag with a hook that, if triggered, will set the debug loggers output to stdout.

func (VerboseFlag) Bool

func (v VerboseFlag) Bool() bool

type VersionFlag

type VersionFlag string

func (VersionFlag) BeforeApply

func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error

func (VersionFlag) Decode

func (v VersionFlag) Decode(ctx *kong.DecodeContext) error

func (VersionFlag) IsBool

func (v VersionFlag) IsBool() bool

Directories

Path Synopsis
Package awscmd contains all commands for the aws section of the fusion cli
Package awscmd contains all commands for the aws section of the fusion cli
Package azurecmd contains all commands for the aws section of the fusion cli
Package azurecmd contains all commands for the aws section of the fusion cli
Package ctlcmd contains all commands for the fusionctl cli
Package ctlcmd contains all commands for the fusionctl cli
Package gcpcmd contains all commands for the gcp section of the fusion cli
Package gcpcmd contains all commands for the gcp section of the fusion cli

Jump to

Keyboard shortcuts

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