Skip to content

Conversation

@dora1998
Copy link
Contributor

@dora1998 dora1998 commented Aug 18, 2024

A feature that allows you to pass the search path from command arguments has been added.
When searching frequently, such as when using an editor extension, we should search only the target files.

Example

$ reminder-lint list         <-- search the directory written in config file
$ reminder-lint list ./foo   <-- search `./foo` (file and dir are OK)

@dora1998 dora1998 self-assigned this Aug 18, 2024
@dora1998 dora1998 force-pushed the feat/path-from-args branch from 937f974 to ad1f507 Compare August 18, 2024 12:56
@dora1998 dora1998 force-pushed the feat/path-from-args branch from ad1f507 to 2c60b30 Compare August 18, 2024 13:02
Base automatically changed from simple-list-command to main August 19, 2024 10:42
Comment on lines +6 to +11
let conf = ConfigBuilder::new()
.config_file_path(command.config_file_path)
.ignore_file_path(command.ignore_file_path)
.build()?;

let reminders = reminder_lint_core::reminders(&conf, command.search_path)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

We can pass the search path option with ConfigBuilder, then passed, it can be merged into Config. 🤔
Anything you intended?

@dora1998 dora1998 marked this pull request as draft October 12, 2024 08:46
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.

3 participants