Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zikani03/bobbymrdr
bobbymrdr: Bobby Might Remove the DiRectory
https://github.com/zikani03/bobbymrdr
Last synced: 21 days ago
JSON representation
bobbymrdr: Bobby Might Remove the DiRectory
- Host: GitHub
- URL: https://github.com/zikani03/bobbymrdr
- Owner: zikani03
- Created: 2022-07-01T17:39:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T18:23:45.000Z (over 2 years ago)
- Last Synced: 2023-07-31T20:03:39.788Z (over 1 year ago)
- Language: Go
- Size: 1.95 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
bobbymrdr
=========Bobby Might Remove the DiRectory.
> NOTE: This is a very dangerous program. ⚠️
Don't run it if you don't know what you are doing. You have been warned.
Now, here is what it does.
Removes a directory from your filesystem after a specified duration. It may create the directory if one doesn't exist.
The expressions for the time are the ones supported by Go's [time.ParseDuration](https://pkg.go.dev/time#ParseDuration) such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".## Usage
Again, don't use this if you don't know what you are doing or aren't sure. There are no safeguards. I am not responsible for any data loss or corruption. ⚠️
```sh
$ bobbymrdr -d "new-project-directory" -after "5m"
```## Building
You will need Go 1.18+ to build `bobbymrdr`
```
$ git clone https://github.com/zikani03/bobbymrdr$ cd bobbymrdr
$ go build
# Put bobbymrdr in your $PATH
```## Why?
I wanted to write some code that does something dangerous. 😎
# LICENSE
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2018 Zikani Nyirenda Mwase
Everyone is permitted to copy and distribute verbatim or modified
copies of this code, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.---
(c) Zikani Nyirenda Mwase