Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/transit gateway #25

Merged
merged 2 commits into from Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -26,4 +26,4 @@ require (
gopkg.in/ini.v1 v1.62.0
)

replace github.com/go-echarts/go-echarts/v2 => github.com/AndreZiviani/go-echarts/v2 v2.2.11
replace github.com/go-echarts/go-echarts/v2 => github.com/AndreZiviani/go-echarts/v2 v2.2.13
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -42,8 +42,8 @@ contrib.go.opencensus.io/exporter/stackdriver v0.12.1/go.mod h1:iwB6wGarfphGGe/e
contrib.go.opencensus.io/integrations/ocsql v0.1.4/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE=
contrib.go.opencensus.io/resource v0.1.1/go.mod h1:F361eGI91LCmW1I/Saf+rX0+OFcigGlFvXwEGEnkRLA=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/AndreZiviani/go-echarts/v2 v2.2.11 h1:bHzL/5to4S3ASQjX2HkKBgp4nJg3CvXNqwhOEeGBSjA=
github.com/AndreZiviani/go-echarts/v2 v2.2.11/go.mod h1:6TOomEztzGDVDkOSCFBq3ed7xOYfbOqhaBzD0YV771A=
github.com/AndreZiviani/go-echarts/v2 v2.2.13 h1:JD927fR8otkGZZ3sy63Oz/uJolp/opFVHmsKHaYmHlg=
github.com/AndreZiviani/go-echarts/v2 v2.2.13/go.mod h1:6TOomEztzGDVDkOSCFBq3ed7xOYfbOqhaBzD0YV771A=
github.com/Azure/azure-amqp-common-go/v3 v3.0.0/go.mod h1:SY08giD/XbhTz07tJdpw1SoxQXHPN30+DI3Z04SYqyg=
github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4=
github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc=
Expand Down
14 changes: 12 additions & 2 deletions internal/chart/main.go
Expand Up @@ -6,12 +6,17 @@ import (

type ChartCommand struct {
Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
User string `short:"u" long:"user" env:"AWSFUZZY_SSH_USER" default:"$USER" description:"Username to use with SSH"`
Key string `short:"k" long:"key" env:"AWSFUZZY_SSH_KEY" default:"~/.ssh/id_rsa" description:"Key to use with SSH"`
Region string `short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
}

type NMCommand struct {
Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
Region string `short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
}

var (
chartCommand ChartCommand
nmCommand NMCommand
)

func Init(parser *flags.Parser) {
Expand All @@ -29,4 +34,9 @@ func Init(parser *flags.Parser) {
"Chart peering relationship",
"Chart peering relationship",
&chartCommand)

cmd.AddCommand("nm",
"Chart NetworkManager topology",
"Chart NetworkManager topology",
&nmCommand)
}