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

feat: add support for recursively scanning directories #49

Merged
merged 5 commits into from
Jan 9, 2022

Commits on Jan 8, 2022

  1. feat: add support for recursively scanning directories

    This means you can now eg navigate to `~/Programming` and run `dura watch` to watch the whole directory recursively. The program will scan each child dir until either a repo is found or the max depth is hit.
    
    Includes, excludes and the max depth can be manually tweaked in the `config.json` file.
    JakeStanger committed Jan 8, 2022
    Configuration menu
    Copy the full SHA
    bf969ee View commit details
    Browse the repository at this point in the history
  2. refactor(poller): improve recursive algorithm, tidy code

    Algorithm now works as follows:
    
    1. Include everything in dir
    2. Exclude anything in the exclude list.
    3. Include everything from \1 that's also in include list, even if it were excluded in 2
    
    The code has been tidied up in several places to improve error handling and quality.
    JakeStanger committed Jan 8, 2022
    Configuration menu
    Copy the full SHA
    7e8d415 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a193500 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2022

  1. test(wip): add test for recursion and includes/excludes

    **THIS TEST IS NOT WORKING YET**
    JakeStanger committed Jan 9, 2022
    Configuration menu
    Copy the full SHA
    59b0649 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60b0931 View commit details
    Browse the repository at this point in the history