steps

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package steps defines the steps involved in setting up a Go project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Title string
	Desc  string
}

Option represents a single option that can be chosen in a step. It includes the title of the option and a description.

type Options

type Options struct {
	ProjectName *textinput.Output
	ProjectType string
}

Options represents the options for initializing the steps. It includes the name of the project and the type of the project.

type StepSchema

type StepSchema struct {
	StepName string
	Options  []Option
	Headers  string
	Field    *string
}

StepSchema represents a single step in the setup process. It includes the name of the step, the options available in this step, the headers to be displayed, and a pointer to the field where the user's choice will be stored.

type Steps

type Steps struct {
	Steps []StepSchema
}

Steps is a collection of StepSchema. It represents all the steps involved in the setup process.

func InitSteps

func InitSteps(options *Options) *Steps

InitSteps initializes the steps of the setup process. It takes an Options struct as input and returns a pointer to a Steps struct. The Steps struct includes all the steps involved in the setup process.

Jump to

Keyboard shortcuts

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