Skip to content

Commit

Permalink
add noop upgradeConfiguration cli command
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitRanque committed Sep 27, 2024
1 parent c444ceb commit 46b3a35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/templates/connector-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ supportedEnvironmentVariables:
commands:
update: hasura-ndc-graphql update
printSchemaAndCapabilities: hasura-ndc-graphql print-schema-and-capabilities
upgradeConfiguration: hasura-ndc-graphql upgrade-configuration
cliPlugin:
name: ndc-graphql
version: "${CLI_VERSION}"
Expand Down
6 changes: 5 additions & 1 deletion crates/ndc-graphql-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ enum Command {
Validate {},
Watch {},
PrintSchemaAndCapabilities {},
UpgradeConfiguration {},
}

#[derive(Clone, ValueEnum)]
Expand Down Expand Up @@ -149,7 +150,10 @@ async fn main() -> Result<(), Box<dyn Error>> {
.expect("Schema and capabilities should serialize to JSON")
)
}
}
Command::UpgradeConfiguration {} => {
println!("Upgrade Configuration command is currently a NOOP")
}
};

Ok(())
}
Expand Down

0 comments on commit 46b3a35

Please sign in to comment.