lcl

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdLcl = cli.NewCmd[Command](cli.CmdRoot, "lcl", func(cmd *cobra.Command) {
	cfg := cli.ConfigFromCmd(cmd)

	cmd.Flags().StringVarP(&cfg.Lcl.DiagnosticAddr, "addr", "a", ":4433", "Address for local diagnostic web server.")

	cmd.Flags().StringSliceVar(&cfg.Lcl.MkCert.Domains, "domains", []string{}, "Domains to create certificate for.")
	cmd.Flags().StringVar(&cfg.Lcl.MkCert.SubCa, "subca", "", "SubCA to create certificate for.")

	cmd.Flags().StringVar(&cfg.Lcl.Setup.Language, "language", "", "Language to integrate with Anchor.")
})
View Source
var CmdLclAudit = cli.NewCmd[Audit](CmdLcl, "audit", func(cmd *cobra.Command) {})
View Source
var CmdLclClean = cli.NewCmd[LclClean](CmdLcl, "clean", func(cmd *cobra.Command) {})
View Source
var CmdLclConfig = cli.NewCmd[LclConfig](CmdLcl, "config", func(cmd *cobra.Command) {
	cfg := cli.ConfigFromCmd(cmd)

	cmd.Flags().StringVarP(&cfg.Lcl.DiagnosticAddr, "addr", "a", ":4433", "Address for local diagnostic web server.")
})
View Source
var CmdLclMkCert = cli.NewCmd[MkCert](CmdLcl, "mkcert", func(cmd *cobra.Command) {
	cfg := cli.ConfigFromCmd(cmd)

	cmd.Flags().StringSliceVar(&cfg.Lcl.MkCert.Domains, "domains", []string{}, "Domains to create certificate for.")
	cmd.Flags().StringVar(&cfg.Lcl.MkCert.SubCa, "subca", "", "SubCA to create certificate for.")
})
View Source
var CmdLclSetup = cli.NewCmd[Setup](CmdLcl, "setup", func(cmd *cobra.Command) {
	cfg := cli.ConfigFromCmd(cmd)

	cmd.Flags().StringVar(&cfg.Lcl.Setup.Language, "language", "", "Language to integrate with Anchor.")
})

Functions

This section is empty.

Types

type Audit added in v0.0.11

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

func (Audit) UI added in v0.0.11

func (c Audit) UI() cli.UI

type Command

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

func (Command) UI

func (c Command) UI() cli.UI

type LclAuditResult added in v0.0.11

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

type LclClean added in v0.0.13

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

func (LclClean) UI added in v0.0.13

func (c LclClean) UI() cli.UI

type LclConfig added in v0.0.11

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

func (LclConfig) UI added in v0.0.11

func (c LclConfig) UI() cli.UI

type MkCert added in v0.0.12

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

func (MkCert) UI added in v0.0.12

func (c MkCert) UI() cli.UI

type Provision

type Provision struct {
	Domains []string
	// contains filtered or unexported fields
}

type Setup added in v0.0.11

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

func (Setup) UI added in v0.0.11

func (c Setup) UI() cli.UI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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