Skip to content

Commit

Permalink
refactor: revert changes to cli
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Gateru <[email protected]>
  • Loading branch information
felixgateru committed Jan 9, 2025
1 parent bae694d commit c856a7b
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func main() {
provisionCmd := cli.NewProvisionCmd()
bootstrapCmd := cli.NewBootstrapCmd()
certsCmd := cli.NewCertsCmd()
subscriptionsCmd := cli.NewSubscriptionCmd()
configCmd := cli.NewConfigCmd()
invitationsCmd := cli.NewInvitationsCmd()
journalCmd := cli.NewJournalCmd()
Expand All @@ -59,6 +60,7 @@ func main() {
rootCmd.AddCommand(provisionCmd)
rootCmd.AddCommand(bootstrapCmd)
rootCmd.AddCommand(certsCmd)
rootCmd.AddCommand(subscriptionsCmd)
rootCmd.AddCommand(configCmd)
rootCmd.AddCommand(invitationsCmd)
rootCmd.AddCommand(journalCmd)
Expand Down Expand Up @@ -112,6 +114,14 @@ func main() {
"HTTP adapter URL",
)

rootCmd.PersistentFlags().StringVarP(
&sdkConf.ReaderURL,
"reader-url",
"R",
sdkConf.ReaderURL,
"Reader URL",
)

rootCmd.PersistentFlags().StringVarP(
&sdkConf.InvitationsURL,
"invitations-url",
Expand Down Expand Up @@ -232,7 +242,22 @@ func main() {
"Bootstrap state query parameter",
)

rootCmd.PersistentFlags().StringVarP(
&cli.Topic,
"topic",
"T",
"",
"Subscription topic query parameter",
)

rootCmd.PersistentFlags().StringVarP(
&cli.Contact,
"contact",
"C",
"",
"Subscription contact query parameter",
)
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)
}
}
}

0 comments on commit c856a7b

Please sign in to comment.