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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for file types from CLI #9

Closed
wants to merge 3 commits into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Oct 15, 2023

PR Feedback: 馃憥

Description

This PR adds support for selecting file types from the command line interface (CLI) in the cspell-tool. It enhances the functionality by using the consola prompt tool to allow users to choose the file type or enter the project name. The selected file types will be used to run cspell and check for unknown words.

Summary of Changes

  • Added consola module to index.ts for prompting users.
  • Created a new async function main() in index.ts to handle the consola prompts and cspell logic.
  • Added consola prompts to ask for the project name, confirmation to continue, and selection of file types.
  • Added consola.start to indicate the project creation process.
  • Modified the cmd variable in index.ts to use the selected file types from the prompts.
  • Added consola to the dependencies list in package.json.

Please review and merge this PR to enable users to select file types for spell checking in the cspell-tool.

Fixes #5.


馃帀 Latest improvements to Sweep:

  • Sweep can now passively improve your repository! Check out Rules to learn more.

馃挕 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@sweep-ai
Copy link
Contributor Author

sweep-ai bot commented Oct 15, 2023

Rollback Files For Sweep

  • Rollback changes to package.json
  • Rollback changes to index.ts

@sweep-ai
Copy link
Contributor Author

sweep-ai bot commented Oct 15, 2023

Apply Sweep Rules to your PR?

  • Apply: Leftover TODOs in the code should be handled.
  • Apply: All new business logic should have corresponding unit tests in the tests/ directory.
  • Apply: Any clearly inefficient or repeated code should be optimized or refactored.

@sweep-ai sweep-ai bot added the sweep label Oct 15, 2023
@changeset-bot
Copy link

changeset-bot bot commented Oct 15, 2023

鈿狅笍 No Changeset found

Latest commit: 3b2b6db

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sweep-ai sweep-ai bot mentioned this pull request Oct 15, 2023
2 tasks
@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub 鈫楋笌

Packages Version New capabilities Transitives Size Publisher
consola 3.2.3 environment +0 228 kB pi0

@sweep-ai sweep-ai bot closed this Oct 16, 2023
@sweep-ai sweep-ai bot deleted the sweep/support-file-types branch October 16, 2023 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Support file types from CLI args
0 participants