mirror of
https://github.com/openziti/zrok.git
synced 2024-11-26 10:04:16 +01:00
cli aliases (#129)
This commit is contained in:
parent
5ba457313a
commit
dc24a0532b
@ -18,9 +18,10 @@ type adminCreateFrontendCommand struct {
|
|||||||
|
|
||||||
func newAdminCreateFrontendCommand() *adminCreateFrontendCommand {
|
func newAdminCreateFrontendCommand() *adminCreateFrontendCommand {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "frontend <zitiId> <publicName> <urlTemplate>",
|
Use: "frontend <zitiId> <publicName> <urlTemplate>",
|
||||||
Short: "Create a global public frontend",
|
Aliases: []string{"fe"},
|
||||||
Args: cobra.ExactArgs(3),
|
Short: "Create a global public frontend",
|
||||||
|
Args: cobra.ExactArgs(3),
|
||||||
}
|
}
|
||||||
command := &adminCreateFrontendCommand{cmd: cmd}
|
command := &adminCreateFrontendCommand{cmd: cmd}
|
||||||
cmd.Run = command.run
|
cmd.Run = command.run
|
||||||
|
@ -18,9 +18,10 @@ type adminDeleteFrontendCommand struct {
|
|||||||
|
|
||||||
func newAdminDeleteFrontendCommand() *adminDeleteFrontendCommand {
|
func newAdminDeleteFrontendCommand() *adminDeleteFrontendCommand {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "frontend <frontendToken>",
|
Use: "frontend <frontendToken>",
|
||||||
Short: "Delete a global public frontend",
|
Aliases: []string{"fe"},
|
||||||
Args: cobra.ExactArgs(1),
|
Short: "Delete a global public frontend",
|
||||||
|
Args: cobra.ExactArgs(1),
|
||||||
}
|
}
|
||||||
command := &adminDeleteFrontendCommand{cmd: cmd}
|
command := &adminDeleteFrontendCommand{cmd: cmd}
|
||||||
cmd.Run = command.run
|
cmd.Run = command.run
|
||||||
|
Loading…
Reference in New Issue
Block a user