cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "lanup",
	Short: "lanup - Expose local services on your LAN",
	Long: `lanup is a CLI tool that automatically exposes your local backend services on your local network.

It detects your local IP address, updates environment variables, and allows you to test
your applications from any device on the same network without manual configuration.`,
	Version: Version,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		return initConfig()
	},
}

RootCmd represents the base command

View Source
var (

	// Version information (set during build)
	Version = "dev"
)

Functions

func Execute

func Execute() error

Execute runs the root command

func GetGlobalConfig

func GetGlobalConfig() *config.GlobalConfig

GetGlobalConfig returns the loaded global configuration

func NewDoctorCmd

func NewDoctorCmd() *cobra.Command

NewDoctorCmd creates a new doctor command

func NewExposeCmd

func NewExposeCmd() *cobra.Command

NewExposeCmd creates a new expose command

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd creates a new init command

func NewStartCmd

func NewStartCmd() *cobra.Command

NewStartCmd creates a new start command

Types

type DoctorCmd

type DoctorCmd struct{}

DoctorCmd represents the doctor command

func (*DoctorCmd) Run

func (c *DoctorCmd) Run() error

Run executes the doctor command

type ExposeCmd

type ExposeCmd struct {
	URL   string
	Name  string
	Port  int
	HTTPS bool
}

ExposeCmd represents the expose command

func (*ExposeCmd) Run

func (c *ExposeCmd) Run() error

Run executes the expose command

type HealthCheck

type HealthCheck struct {
	Name    string
	Status  bool
	Message string
}

HealthCheck represents the result of a health check

type InitCmd

type InitCmd struct {
	Format string
	Force  bool
}

InitCmd represents the init command

func (*InitCmd) Run

func (c *InitCmd) Run() error

Run executes the init command

type LogsCmd

type LogsCmd struct {
	Tail   int
	Follow bool
	Clear  bool
}

LogsCmd represents the logs command

func (*LogsCmd) Run

func (c *LogsCmd) Run() error

Run executes the logs command

type StartCmd

type StartCmd struct {
	Watch  bool
	NoEnv  bool
	DryRun bool
	Log    bool
	// contains filtered or unexported fields
}

StartCmd represents the start command

func (*StartCmd) Run

func (c *StartCmd) Run() error

Run executes the start command

Jump to

Keyboard shortcuts

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