Skip to content
Go Makefile
Branch: master
Clone or download

Latest commit

Latest commit 1da01fd Mar 18, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Updating readme. Mar 13, 2020
.travis.yml Adding .travis.yml. Mar 13, 2020
LICENSE Adding license. Mar 13, 2020
Makefile Updating dependency. Mar 18, 2020
README.md Updating readme. Mar 13, 2020
philter-cli.go Updating dependency. Mar 18, 2020

README.md

Philter CLI

The Philter CLI is a tool to interact with Philter from the command line. Use it to send files to Philter for identification and removal of sensitive information.

Executables are available on the Releases page.

All operations can be achieved through the use of a tool like cURL but this project aims to provide a more user-friendly experience.

This project uses the philter-sdk-golang library.

Build Status

Usage

Send the content of input.txt to Philter for processing. The filtered text will be written to standard out.

./philter-cli-linux-amd64 -h https://54.81.15.61:8080 -f input.txt

Send the content of input.txt to Philter for processing with explanation. The explanation containing the filtered text will be written to standard out as JSON.

./philter-cli-linux-amd64 -h https://54.81.15.61:8080 -f input.txt -e

Read the input from stdin and send the text to Philter. The filtered text will be written to stdout.

echo "The SSN was 123-45-6789." | ./philter-cli-linux-amd64 -h https://54.81.15.61:8080 

Or cat the input from a file:

cat input.txt | ./philter-cli-linux-amd64 -h https://54.81.15.61:8080 

Read text from a file through stdin and write the filtered text to a different file:

cat input.txt | ./philter-cli-linux-amd64 -h https://54.81.15.61:8080 -i > filtered.txt

All options:

  -c string
    	The context (optional). (default "default")
  -d string
    	The document ID (optional). (default "default")
  -e	Explain (optional).
  -f string
    	The file to process. (default "file")
  -h string
    	Philter API endpoint, e.g. https://localhost:8080/api (default "https://localhost:8080/api")
  -i	Ignore certificate errors.
  -p string
    	The filter profile (optional). (default "default")
  -v	Show version.

License

This project is licensed under the Apache Software License, version 2.0.

Copyright 2020 Mountain Fog, Inc.

You can’t perform that action at this time.