init

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 9 Imported by: 0

README

init

import "github.com/tfadeyi/slotalk/cmd/options/init"

Package spec contains the different options present under the spec generation command.

Index

type Options

Options is the list of options/flag available to the application, plus the clients needed by the application to function.

type Options struct {
    Formats       []string
    IncludedDirs  []string
    Source        string
    SrcLanguage   lang.Target
    Specification string
    *common.Options
}
func New
func New(c *common.Options) *Options

New creates a new instance of the application's options

func (*Options) Complete
func (o *Options) Complete() error

Complete initialises the components needed for the application to function given the options

func (*Options) Prepare
func (o *Options) Prepare(cmd *cobra.Command) *Options

Prepare assigns the applications flag/options to the cobra cli

Generated by gomarkdoc

Documentation

Overview

Package spec contains the different options present under the spec generation command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Formats       []string
	IncludedDirs  []string
	Source        string
	SrcLanguage   lang.Target
	Specification string
	*common.Options
}

Options is the list of options/flag available to the application, plus the clients needed by the application to function.

func New

func New(c *common.Options) *Options

New creates a new instance of the application's options

func (*Options) Complete

func (o *Options) Complete() error

Complete initialises the components needed for the application to function given the options

func (*Options) Prepare

func (o *Options) Prepare(cmd *cobra.Command) *Options

Prepare assigns the applications flag/options to the cobra cli

Jump to

Keyboard shortcuts

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