Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waynevanson/estrange
Estrange directories between ancestors and children
https://github.com/waynevanson/estrange
Last synced: about 1 month ago
JSON representation
Estrange directories between ancestors and children
- Host: GitHub
- URL: https://github.com/waynevanson/estrange
- Owner: waynevanson
- License: agpl-3.0
- Created: 2024-07-14T10:20:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T08:30:59.000Z (6 months ago)
- Last Synced: 2024-11-30T16:41:45.308Z (about 1 month ago)
- Language: Rust
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# `estrange`
A cli tool that moves directories from within a target to the target, making the directories in between "estranged".
## `--help`
```
Usage: estrange [OPTIONS] [SOURCES]...Arguments:
[SOURCES]... The sources that we want to move into the target directory. Should be one or more sources, although this isn't validated yetOptions:
-d, --dry-run Applies reading operations, prints writing operations
-t, --target The directory we want to move all our sources into. Defaults to the current working directory
-v, --verbose... Increase logging verbosity
-q, --quiet... Decrease logging verbosity
-h, --help Print help
```## Quick start
```sh
# Move content within `one/two/three` to the current working directory $PWD# print directory structure
# find *
# one/two/three/four/five.fileestrange one/two/three
# find *
# four/five.file
```## Usage
### Single argument
```sh
estrange one/two/three
```### Multiple arguments
```sh
estrange one/two/three one/two/four
```## Contribution
Please write a test in `test.sh` to ensure your case is covered.
## Considerations
Please consider the following before consuming this code.
- Covering my use case only unless asked otherwise.