Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Version: shared.VersionString(), Use: "localias", Short: "securely manage local aliases for development servers", Example: shared.Example(` # Add an alias forwarding https://secure.test to http://127.0.0.1:9000 localias set secure.test 9000 # Update an existing alias to forward to a different port localias set secure.test 9001 # Remove an alias localias rm secure.test # List all aliases localias list # Clear all aliases localias clear # Start the proxy server as a daemon process localias start # Show the status of the daemon process localias status # Apply the latest configuration and relaunch the daemon process localias reload # Stop the daemon process localias stop # Run the proxy server in the foreground localias run `), RunE: func(cmd *cobra.Command, args []string) error { if len(args) != 0 { return fmt.Errorf(`invalid command: "%s"`, args[0]) } return cmd.Help() }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.