Skip to content

docs: Added README and related repo doc files - #56

Merged
christerswahn merged 2 commits into
mainfrom
pkg-split
Aug 6, 2025
Merged

christerswahn merged 2 commits into
mainfrom
pkg-split

Conversation

@christerswahn

@christerswahn christerswahn commented Aug 6, 2025

Copy link
Copy Markdown
Collaborator

Created a README.md in the repository root that links to the package-specific READMEs.

Copied the CONTRIBUTING.md file from the serverpod repo and adapted it for cli_tools.

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive contribution guide outlining how to contribute, coding standards, and pull request requirements.
    • Introduced a new README with an overview of the project, main features, and guidance for contributors.

@coderabbitai

coderabbitai Bot commented Aug 6, 2025

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Two new documentation files have been added to the cli_tools repository: CONTRIBUTING.md, which details contribution guidelines, and README.md, which provides an overview of the repository, its purpose, and main package. No code or API changes are present.

Changes

Cohort / File(s) Change Summary
Contribution Guidelines
CONTRIBUTING.md
New file outlining contribution instructions, code style, PR process, dependency policy, and community support.
Repository Overview
README.md
New file introducing the repository, its main package, and linking to contribution guidelines.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • SandPod

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pkg-split

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@christerswahn
christerswahn requested a review from SandPod August 6, 2025 12:55

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (6)
README.md (3)

3-5: Minor wording improvements for clarity

The current phrasing is a bit repetitive (“packages … tools and libraries” + “packages are open source and maintained and used”). Consider tightening the copy:

-The cli_tools repository houses packages with tools and libraries to support CLI command development.
-
-These packages are open source and maintained and used by Serverpod.
+The cli_tools repository contains open-source packages that help you build CLI commands.  
+They are actively maintained and used by the Serverpod team.

11-11: Grammar / punctuation nitpick

Insert a colon after “for example” (or rephrase) to avoid a run-on sentence.

-The [cli_tools package](packages/cli_tools/README.md) contains a number of tools and libraries for CLI development, for example terminal logging, user input prompting, and collecting usage analytics.
+The [cli_tools package](packages/cli_tools/README.md) offers several utilities for CLI development, for example: terminal logging, user-input prompting, and usage-analytics collection.

14-16: Add reciprocal link back to root README in CONTRIBUTING.md

Since the README points to CONTRIBUTING, add a “Back to README” link at the end of CONTRIBUTING.md to create a two-way navigation path. Improves DX without extra maintenance burden.

CONTRIBUTING.md (3)

24-24: Section heading grammar

### Code style is fine, but you may want to capitalize consistently (“Code Style”) to match other headings (“Running the tests”, “Introducing new dependencies”).


44-44: Tighten wording & possessive apostrophe

Small grammar issues: “projects git history” should be “project’s Git history”; sentence is long and flagged by LanguageTool.

-To keep the projects git history clean, we will squash PRs before merging. Therefore, it is essential that each pull request only contains a single feature or bug fix. Keeping pull requests small also makes it easier to review the changes which in turn speeds up the review process.
+To keep the project’s Git history clean, we squash PRs before merging. Each pull request should therefore focus on a single feature or bug fix. Smaller PRs are easier to review, which, in turn, accelerates the review process.

54-54: Pluralize “issue” and improve phrasing

-Help us make these packages better by filing [issue](https://github.com/serverpod/cli_tools/issues/new) for bugs, feature requests, or improvements.
+Help us improve these packages by filing [issues](https://github.com/serverpod/cli_tools/issues/new) for bugs, feature requests, or other improvements.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8c409e1 and ed07ab3.

📒 Files selected for processing (2)
  • CONTRIBUTING.md (1 hunks)
  • README.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: assertions should not be used in production code in the serverpod/cli_tools repository, as they are ...
Learnt from: christerswahn
PR: serverpod/cli_tools#46
File: lib/src/config/options.dart:313-316
Timestamp: 2025-05-15T07:45:59.256Z
Learning: Assertions should not be used in production code in the serverpod/cli_tools repository, as they are only active in development mode and not in production builds.

Applied to files:

  • README.md
🪛 LanguageTool
CONTRIBUTING.md

[style] ~44-~44: Consider using a different verb to strengthen your wording.
Context: ...ier to review the changes which in turn speeds up the review process. Before the Serverp...

(SPEED_UP_ACCELERATE)


[style] ~54-~54: The wording of this phrase can be improved.
Context: .... ## Contributing with issues Help us make these packages better by filing [issue](https://github.com/se...

(MAKE_STYLE_BETTER)

🔇 Additional comments (1)
CONTRIBUTING.md (1)

16-18: Empty “Roadmap” section

The “## Roadmap” heading does not currently contain any content. Either populate it with a short roadmap paragraph or remove the heading to avoid confusion.

Comment thread CONTRIBUTING.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (5)
CONTRIBUTING.md (5)

22-22: Preposition & article mis-use
“declare your interest on an issue” → “declare your interest in an issue”.

-Pull requests are very much welcome. If you are working on something more significant than just a smaller bug fix, please declare your interest on an issue first.
+Pull requests are very much welcome. If you are working on something more significant than a small bug fix, please declare your interest in an issue first.

26-27: Tighten repetitive wording
“follow the linter rules” is repeated twice in one sentence – trim for brevity.

-When you write code, make sure to use `dart format` and `dart analyze` to ensure that the code follows the linter rules.
+When you write code, run `dart format` and `dart analyze` to ensure it complies with the linter.

32-32: Clarify test execution step
Current phrasing is slightly awkward; propose a clearer instruction.

-To run the tests in a package, set the current directory to it and run `dart test`.
+From the package directory, execute `dart test` to run its tests.

44-45: Possessive & subject-verb agreement

  1. “projects git history” → “project’s Git history”.
  2. “pull request only contains” → “pull request contains”.
  3. Add a comma before the non-restrictive clause.
-To keep the projects git history clean, we will squash PRs before merging. Therefore, it is essential that each pull request only contains a single feature or bug fix. Keeping pull requests small also makes it easier to review the changes which in turn speeds up the review process.
+To keep the project’s Git history clean, we squash PRs before merging. Therefore, each pull request should contain a single feature or bug fix. Keeping PRs small also makes it easier to review the changes, which in turn speeds up the review process.

54-54: Singular/plural mismatch
“filing issue” → “filing issues” or “filing an issue”.

-Help us make these packages better by filing [issue](https://github.com/serverpod/cli_tools/issues/new) for bugs, feature requests, or improvements.
+Help us make these packages better by filing [issues](https://github.com/serverpod/cli_tools/issues/new) for bugs, feature requests, or improvements.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ed07ab3 and 28e5d6a.

📒 Files selected for processing (2)
  • CONTRIBUTING.md (1 hunks)
  • README.md (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • README.md
🧰 Additional context used
🪛 LanguageTool
CONTRIBUTING.md

[style] ~44-~44: Consider using a different verb to strengthen your wording.
Context: ...ier to review the changes which in turn speeds up the review process. Before the Serverp...

(SPEED_UP_ACCELERATE)


[style] ~54-~54: The wording of this phrase can be improved.
Context: .... ## Contributing with issues Help us make these packages better by filing [issue](https://github.com/se...

(MAKE_STYLE_BETTER)

@christerswahn
christerswahn merged commit a0af0d1 into main Aug 6, 2025
8 checks passed
@christerswahn
christerswahn deleted the pkg-split branch August 6, 2025 13:26
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.

2 participants