https://github.com/keisukeyamashita/poi
Poi is a useful temporary file manager 🍭🗑⚔️
https://github.com/keisukeyamashita/poi
bash cli poi
Last synced: 7 months ago
JSON representation
Poi is a useful temporary file manager 🍭🗑⚔️
- Host: GitHub
- URL: https://github.com/keisukeyamashita/poi
- Owner: KeisukeYamashita
- Created: 2019-08-26T19:08:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T13:28:36.000Z (about 6 years ago)
- Last Synced: 2024-10-05T12:24:04.570Z (about 1 year ago)
- Topics: bash, cli, poi
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poi
Poi is a useful temporary file manager 🍭🗑⚔️
This name was inspired by [this library](https://github.com/HideakiTouhara/Poi) .
```
$ poi help
Name
Poi is a useful temporary file manager 🍭 🗑 ⚔️
Synopsis
poi COMMAND
COMMANDs:
[Store tmp file]
curl -s "www.google.com" | poi poi
[With Title and tags]
curl -s "www.google.com" | poi poi --title google_page --tag html,google
[Restore latest file]
poi pui
[Show latest file path]
poi where
[Show file]
poi cat FILE_ID
[Show file]
poi cat --interactive
[Search file]
poi ls
[Search file]
poi ls -i
[Search by file: interactive mode]
poi ls SUM_COMMAND --interactive
[Delete(sweep) cache]
poi sweep
[Delete all files]
poi clean
[Show help]
poi help
```
## Usage
### Store tmp file
Store file.
```
$ cat README.md | poi poi
```
#### Add title and tag
* Use can add title or tag
```
$ cat README.md | poi poi --title cat_readme --tag cat,doc
```
### Show file
#### Show latest store file
`pui` command shows the latest stored file.
```
$ poi pui
```
#### Show tmp file
Show file can be done by the `cat` command.
```
$ poi cat FILE_ID
```
### List file
#### List all files
List all temporary files.
```
$ poi ls
```
### Delete all temporary files
Use `sweep` command for delete all files in tmp.
```
$ poi sweep
```
### Super delete
Sweep commands does not actually deletes your tmp file. It compresses "sweeped" temporary file and store in another file. To delete, use `clear command`
```
$ poi clear
```
## Configure variable
Add configure by these command.
* `POI_DIR`: Tmp store path
* Default is `$HOME/.poi`
## Author
* KeisukeYamashita