cli

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Port       int
	Log        bool
	Help       string
	Version    string
	Connection string
}

Args represents the command-line arguments for sqlweb.

func NewArgs

func NewArgs() *Args

NewArgs initializes and returns a new Args struct with default values.

func (*Args) ValidatePortRange

func (args *Args) ValidatePortRange() error

ValidatePortRange checks if the Port field falls within a valid port number range. It returns an error if the port number is invalid.

Jump to

Keyboard shortcuts

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