Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move api-client out of the cli #308

Merged
merged 2 commits into from
Jan 17, 2025
Merged

Move api-client out of the cli #308

merged 2 commits into from
Jan 17, 2025

Conversation

gnalh
Copy link
Collaborator

@gnalh gnalh commented Jan 17, 2025

In an effort to remove having libs under the cli, separate this out into the api crate. This PR also cleans up some of the naming and adds corresponding request / response types where previously missing.

Copy link

trunk-io bot commented Jan 17, 2025

😎 Merged successfully - details.

Copy link

trunk-staging-io bot commented Jan 17, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@gnalh gnalh force-pushed the gabe/move-api-client branch from f2a0ffa to 861a144 Compare January 17, 2025 04:26
@@ -74,7 +74,7 @@ where
}
});

let result = Retry::spawn(default_delay(), || (&mut self.action).run()).await;
let result = Retry::spawn(default_delay(), || self.action.run()).await;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clippy changed this

Comment on lines -332 to +344
.cloned()
.take(2)
.cloned()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was also changed by clippy.

@gnalh gnalh force-pushed the gabe/move-api-client branch 3 times, most recently from d939ee6 to 3b25066 Compare January 17, 2025 04:38
Copy link
Member

@dfrankland dfrankland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! I just figured out that this is the config to make imports get auto-formatted!

https://rust-lang.github.io/rustfmt/?version=v1.8.0&search=#group_imports

cli/src/context.rs Outdated Show resolved Hide resolved
cli/src/context_quarantine.rs Outdated Show resolved Hide resolved
cli/src/upload_command.rs Outdated Show resolved Hide resolved
@gnalh gnalh marked this pull request as ready for review January 17, 2025 17:20
@gnalh gnalh force-pushed the gabe/move-api-client branch from 8dc867c to 19819f8 Compare January 17, 2025 17:37
@trunk-io trunk-io bot merged commit a60141d into main Jan 17, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants