Skip to content

hansipie/save

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Save

Overview

save is a "tee-like" utility to pipeline saving of content, while keeping the output stream intact.

SAVE_OUTPUT_PATH environment variable needs to be set to define where you save.

Packaging

Use pyinstaller to create a standalone executable.

$ pip install pyinstaller
$ pyinstaller --onefile save.py

Usage

Usage: save [--help] [--silent] [filename]

save: a "tee-like" utility to pipeline saving of content, while keeping the output stream intact.

positional arguments:
  filename            filename to save the input. Use quotes if you have spaces. Resulting format is filename.txt by default

options:
  --ext           Custom file extension.
  --silent        Don't use STDOUT for output, only save to the file.
  --help          show this help message and exit.

Examples

$ echo test | save output_file
test

$ cat {SAVE_OUTPUT_PATH}/output_file.txt
test
$ echo test | save --ext md output_file
test

$ cat {SAVE_OUTPUT_PATH}/output_file.md
test

About

A "tee-like" utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages