Skip to content

Commit edd8260

Browse files
authored
cli: Add support for the Connector API (#2106)
2 parents fcab33d + d76623f commit edd8260

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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))

svix-cli/src/cmds/api/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pub mod application;
22
pub mod authentication;
3+
pub mod connector;
34
pub mod endpoint;
45
pub mod environment;
56
pub mod event_type;

svix-cli/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use self::{
2121
},
2222
config::Config,
2323
};
24+
use crate::cmds::api::connector::ConnectorArgs;
2425

2526
mod cmds;
2627
mod 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?;

0 commit comments

Comments
 (0)