access private scaffold (#106, #109)

This commit is contained in:
Michael Quigley 2022-11-23 11:34:02 -05:00
parent aa2f974cf9
commit 2cb6b6ab83
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package main
import "github.com/spf13/cobra"
type accessPrivateCommand struct {
cmd *cobra.Command
}
func newAccessPrivateCommand() *accessPrivateCommand {
cmd := &cobra.Command{
Use: "private <serviceToken>",
Short: "Create a private frontend to access a service",
Args: cobra.ExactArgs(1),
}
command := &accessPrivateCommand{cmd: cmd}
cmd.Run = command.run
return command
}
func (cmd *accessPrivateCommand) run(_ *cobra.Command, args []string) {
}

View File

@ -32,6 +32,11 @@ var verbose bool
var panicInstead bool
var apiEndpoint string
var accessCmd = &cobra.Command{
Use: "access",
Short: "Access services",
}
var httpCmd = &cobra.Command{
Use: "http",
Short: "HTTP endpoint operations",