initcmd

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spec

type Spec struct {
	Format string `` //nolint:staticcheck // false positive detecting duplicate tags (it works fine on other files with the same pattern)
	/* 197-byte string literal not displayed */
	Title       string   `description:"the title of the API"       long:"title"`
	Description string   `description:"the description of the API" long:"description"`
	Version     string   `` /* 135-byte string literal not displayed */
	Terms       string   `description:"the terms of services"      long:"terms"`
	Consumes    []string `` /* 136-byte string literal not displayed */
	Produces    []string `` /* 136-byte string literal not displayed */
	Schemes     []string `` /* 134-byte string literal not displayed */
	Contact     struct {
		Name  string `description:"name of the primary contact for the API"  long:"contact.name"`
		URL   string `description:"url of the primary contact for the API"   long:"contact.url"`
		Email string `description:"email of the primary contact for the API" long:"contact.email"`
	}
	License struct {
		Name string `description:"name of the license for the API" long:"license.name"`
		URL  string `description:"url of the license for the API"  long:"license.url"`
	}
}

Spec represents a command for initializing a new swagger application.

func (*Spec) Execute

func (s *Spec) Execute(args []string) error

Execute this command.

Jump to

Keyboard shortcuts

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