cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTerminalWidth = 80

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "ply",
	Short: "Ply is a developer tool for automating common tasks on a spring boot project",
	Long:  header(),
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		if err := InitGlobals(cmd); err != nil {
			log.Fatalln(err)
		}
	},
}

Functions

func Execute

func Execute()

func InitGlobals

func InitGlobals(cmd *cobra.Command) error

func OkHelp

func OkHelp(cmd *cobra.Command, depend func() bool) error

func OpenDocumentationWebsite added in v1.0.1

func OpenDocumentationWebsite(cmd *cobra.Command, path string) error

func SyncActiveProfileCloudConfig

func SyncActiveProfileCloudConfig() error

Types

type AnalyzeOpts

type AnalyzeOpts struct {
	Deps bool
}

func (AnalyzeOpts) Any

func (analyzeOpts AnalyzeOpts) Any() bool

type ConfigOpts

type ConfigOpts struct {
	Sync       bool
	Reset      bool
	Show       bool
	Edit       bool
	UseProfile string
}

func (ConfigOpts) Any

func (configOpts ConfigOpts) Any() bool

type InfoOpts

type InfoOpts struct {
	SpringManaged     bool
	SpringInfo        bool
	MavenRepositories bool
	Templates         bool
	Examples          bool
}

func (InfoOpts) Any

func (infoOpts InfoOpts) Any() bool

type InstallOpts

type InstallOpts struct {
	AutoComplete bool
}

type QueryOpts

type QueryOpts struct {
	// contains filtered or unexported fields
}

func (QueryOpts) Any

func (opts QueryOpts) Any() bool

type RemoveOpts added in v1.0.1

type RemoveOpts struct {
	Generated bool
	Intellij  bool
}

func (RemoveOpts) Any added in v1.0.1

func (opts RemoveOpts) Any() bool

type StatusOpts

type StatusOpts struct {
	Show bool
}

func (StatusOpts) Any

func (sOpts StatusOpts) Any() bool

Jump to

Keyboard shortcuts

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