Skip to content

ripexz/logpasta

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

logpasta

Simple CLI for Logpasta, just run your_command | logpasta.

Installation

  • Via Homebrew: brew tap ripexz/tap && brew install logpasta
  • Via Go: go get github.com/ripexz/logpasta
  • Download binary and put it in your $PATH

Usage

  • any_command | logpasta [flags]
  • logpasta [flags] any string at all
  • logpasta [flags] < your_file

To see the current CLI version, run logpasta version

Config

You can override the default configuration by passing flags:

  • -u - string - override default logpasta URL (default: https://www.logpasta.com)
  • -s - bool - suppress output, unless the request fails (default: true)
  • -d - bool - output debug information (default: false)
  • -t - int - http client timeout in seconds (default: 5)
  • -c - bool - copy the log url to clipboard (default: false)

You can also set up environmental variables to make the job easier, however flags will override these:

  • LOGPASTA_URL - string - see -u flag
  • LOGPASTA_SILENT - bool - see -s flag
  • LOGPASTA_DEBUG - bool - see -d flag
  • LOGPASTA_TIMEOUT - int - see -t flag
  • LOGPASTA_COPY - bool - see -c flag