Skip to content

Small wrapper for opening a stream as a file or stdin/stdout.

License

Notifications You must be signed in to change notification settings

danieldk/stdinout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A pattern that often occurs in UNIX utilities is:

  • You want to read from a file when a filename argument is provided, otherwise from stdin.
  • You want to write to a file when a filename argument is provided, otherwise to stdout.

This is a small crate that accommodates that pattern.

Note: This package is still new, its API will change.

Installation

This package can be used with Cargo:

[dependencies]
stdinout = 0.1

About

Small wrapper for opening a stream as a file or stdin/stdout.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages