steps

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package steps provides utility for creating each step of the CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Label, Value, Description, Tags string
}

An Item contains the data for each option in a StepSchema.Options

func NewItem

func NewItem(label, value, description string, tags []string) Item

type StepSchema

type StepSchema struct {
	StepName string // The name of a given step
	Options  []Item // The slice of each option for a given step
	Headers  string // The title displayed at the top of a given step
	Field    string
}

A StepSchema contains the data that is used for an individual step of the CLI

type Steps

type Steps struct {
	Steps map[string]StepSchema
}

Steps contains a slice of steps

Jump to

Keyboard shortcuts

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