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

Create initial prototype #4

Closed
atc0005 opened this issue Aug 18, 2019 · 1 comment · Fixed by #9
Closed

Create initial prototype #4

atc0005 opened this issue Aug 18, 2019 · 1 comment · Fixed by #9
Assignees
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Aug 18, 2019

The idea is to either use hard-coded settings or the standard library to support basic options via positional command-line arguments.

The core concept is an app that can be pointed at a target directory and allowed to recursively prune all files matching specific patterns.

Those patterns can be any of:

  • date (modified X days in the past)
  • filename (e.g., date/time naming scheme)
  • extension (e.g., .tmp)
  • ?

The idea is that this tool would be called by a cron job or as needed as a one-shot run to perform cleanup work.

@atc0005 atc0005 added this to the v0.1 milestone Aug 18, 2019
@atc0005 atc0005 self-assigned this Aug 18, 2019
@atc0005 atc0005 pinned this issue Aug 18, 2019
atc0005 added a commit that referenced this issue Sep 13, 2019
This initial prototype supports:

- Matching on specified file patterns
- Flat (single-level) or recursive search
- Keeping a specified number of older or newer matches
- Limiting search to specified list of extensions
- Toggling file removal (read-only by default)
- Go modules (vs classic GOPATH setup)

refs #2, #4, #6
@atc0005 atc0005 unpinned this issue Sep 13, 2019
@atc0005
Copy link
Owner Author

atc0005 commented Sep 16, 2019

Initial support for command-line flags will be included in v0.1, but (planned) refined in v0.2 per further work on #2.

At this point I'll cleanup/rebase the prototype branch and merge current work.

atc0005 added a commit that referenced this issue Sep 17, 2019
This initial prototype supports:

- Matching on specified file patterns
- Flat (single-level) or recursive search
- Keeping a specified number of older or newer matches
- Limiting search to specified list of extensions
- Toggling file removal (read-only by default)
- Go modules (vs classic GOPATH setup)

refs #2, #4, #6
atc0005 added a commit that referenced this issue Sep 18, 2019
This initial prototype supports:

- Matching on specified file patterns
- Flat (single-level) or recursive search
- Keeping a specified number of older or newer matches
- Limiting search to specified list of extensions
- Toggling file removal (read-only by default)
- Go modules (vs classic GOPATH setup)

refs #2, #4, #6
atc0005 added a commit that referenced this issue Sep 18, 2019
This initial prototype supports:

- Matching on specified file patterns
- Flat (single-level) or recursive search
- Keeping a specified number of older or newer matches
- Limiting search to specified list of extensions
- Toggling file removal (read-only by default)
- Go modules (vs classic GOPATH setup)
- Brief overview, examples for testing purposes

refs #2, #4, #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant