这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: Add --publish-interval option and update documentation #190

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

pksunkara
Copy link
Owner

This commit introduces a new command-line option --publish-interval to the publish command. This option allows you to specify a number of seconds to wait between each crate publishing attempt. This helps prevent hitting API rate limits on a crate registry.

This commit also includes the following changes based on your feedback:

  • Moved std imports to the top of the file in cargo-workspaces/src/publish.rs.
  • Removed tests for the --publish-interval feature.
  • Updated README.md to document the new option.
  • Updated CHANGELOG.md with details of this new feature.

The implementation includes:

  • Addition of the --publish-interval <SECONDS> argument to the Publish command.
  • Logic in the Publish::run method to pause execution for the specified interval.

Addresses #177

@pksunkara pksunkara linked an issue May 25, 2025 that may be closed by this pull request
@pksunkara pksunkara force-pushed the feature/publish-interval branch from 3844701 to a5daf9e Compare May 27, 2025 03:12
This commit introduces a new command-line option `--publish-interval`
to the `publish` command. This option allows you to specify a number
of seconds to wait between each crate publishing attempt. This helps
prevent hitting API rate limits on a crate registry.

This commit also includes the following changes based on your feedback:
- Moved std imports to the top of the file in `cargo-workspaces/src/publish.rs`.
- Removed tests for the `--publish-interval` feature.
- Updated README.md to document the new option.
- Updated CHANGELOG.md with details of this new feature.

The implementation includes:
- Addition of the `--publish-interval <SECONDS>` argument to the `Publish`
  command.
- Logic in the `Publish::run` method to pause execution for the
  specified interval.

Addresses #177
@pksunkara pksunkara force-pushed the feature/publish-interval branch from a5daf9e to 17b5467 Compare May 27, 2025 03:16
@pksunkara pksunkara merged commit 009bc15 into master May 27, 2025
7 checks passed
@pksunkara pksunkara deleted the feature/publish-interval branch May 27, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Publish back-off delay to prevent too many requests
1 participant