File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Unreleased
4+ * CLI: Add support for the Connector API
5+
36## Version 1.81.0
47* Libs/All: Add support for the new [ Connector API] ( https://api.svix.com/docs#tag/Connector )
58 (see also [ the corresponding docs section] ( https://docs.svix.com/connectors ) )
Original file line number Diff line number Diff line change 11pub mod application;
22pub mod authentication;
3+ pub mod connector;
34pub mod endpoint;
45pub mod environment;
56pub mod event_type;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ use self::{
2121 } ,
2222 config:: Config ,
2323} ;
24+ use crate :: cmds:: api:: connector:: ConnectorArgs ;
2425
2526mod cmds;
2627mod config;
@@ -63,6 +64,8 @@ enum RootCommands {
6364 Authentication ( AuthenticationArgs ) ,
6465 /// Generate the autocompletion script for the specified shell
6566 Completion { shell : Shell } ,
67+ /// List, create & modify connectors
68+ Connector ( ConnectorArgs ) ,
6669 /// List, create & modify endpoints
6770 Endpoint ( EndpointArgs ) ,
6871 /// Import or export environments
@@ -125,6 +128,10 @@ async fn main() -> Result<()> {
125128 let client = get_client ( & cfg) ?;
126129 args. command . exec ( & client, color_mode) . await ?;
127130 }
131+ RootCommands :: Connector ( args) => {
132+ let client = get_client ( & cfg?) ?;
133+ args. command . exec ( & client, color_mode) . await ?;
134+ }
128135 RootCommands :: EventType ( args) => {
129136 let client = get_client ( & cfg?) ?;
130137 args. command . exec ( & client, color_mode) . await ?;
You can’t perform that action at this time.
0 commit comments