Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 10 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ itertools = "0.15.0"
kcl-error = "=0.2.171"
kcl-lib = { version = "=0.2.171", features = ["disable-println"] }
kcl-test-server = "=0.2.171"
kittycad = { version = "0.4.12", features = [
kittycad = { version = "0.4.14", features = [
"clap",
"tabled",
"requests",
Expand Down
7 changes: 6 additions & 1 deletion cli-macro-impl/tests/gen/users.rs.gen
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ impl crate::cmd::Command for CmdUserView {
#[derive(clap :: Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
pub struct CmdUserEdit {
#[doc = "Whether the user has opted into pay-as-you-go charges after using their included credits."]
#[clap(long = "allow-pay-as-you-go", short = 'a', required = false)]
pub new_allow_pay_as_you_go: Option<bool>,
#[doc = "The user's company."]
#[clap(long = "company", short = 'c', required = false)]
pub new_company: Option<String>,
Expand Down Expand Up @@ -72,7 +75,8 @@ pub struct CmdUserEdit {
# [async_trait :: async_trait (? Send)]
impl crate::cmd::Command for CmdUserEdit {
async fn run(&self, ctx: &mut crate::context::Context) -> anyhow::Result<()> {
if self.new_company.is_none()
if self.new_allow_pay_as_you_go.is_none()
&& self.new_company.is_none()
&& self.new_discord.is_none()
&& self.new_first_name.is_none()
&& self.new_github.is_none()
Expand All @@ -89,6 +93,7 @@ impl crate::cmd::Command for CmdUserEdit {
let result = client
.users()
.update_self(&kittycad::types::UpdateUser {
allow_pay_as_you_go: self.new_allow_pay_as_you_go.clone(),
company: self.new_company.clone(),
discord: self.new_discord.clone(),
first_name: self.new_first_name.clone(),
Expand Down
Loading
Loading