Skip to content

Dump provenance information for executed command

Notifications You must be signed in to change notification settings

harvard-nrg/selfie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selfie

Dump environment variables, OS information, and other provenance information for the command line application you're about to execute to a JSON file.

Table of contents

  1. Installation
  2. Usage
  3. Help

Installation

Use pip

pip install selfie

Usage

Just prefix your command with selfie. This will print the provenance information to the console following your command

selfie ls -la ~/

If you want to save the provenance information to a file, use the -o|--output-file argument

selfie -o selfie.json ls -la ~/

If you wish selfie to lock the --output-file for the duration of the command being executed, use the -l|--lock argument

selfie -o selfie.json -l ls -la ~/

If you want the selfie output to mask out certain environment variables, provide a comma separated list of regular expressions using the -m|--mask argument

selfie -m '.*PASSPHRASE.*','SECRET_THINGER' ls -la ~/

You can save often used --mask regular expressions to a newline separated file within your home directory ~/.config/selfie/ignore. An example file would look like this

.*PASSPHRASE.*
SECRET_THINGER

For more help

Use the --help argument for more command line options.

About

Dump provenance information for executed command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published