steps

package
v0.10.4-0...-03c1e77 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 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 {
	Flag, Title, Desc string
}

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

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

func InitSteps

func InitSteps(projectType flags.Framework, databaseType flags.Database) *Steps

InitSteps initializes and returns the *Steps to be used in the CLI program

Jump to

Keyboard shortcuts

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