is

command module
v0.0.0-...-4788e26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

is - Itsy Share

Share text snippets and files on your local network through http

$ go get github.com/itsy-sh/is

$ is --help  
NAME:
   is - Itsy Share creates a local web server in order to share text snippets and files 
        on your local network through http

USAGE:
   echo "foo bar" | is [global options]
   is [global options] [filename]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --nokey      no access key is needed to view content  (default: false)
   --noclip     do not copy url to clipboard (default: false)
   --once, -o   terminates the server after first page load, so things dont hang around 
                (copies curl command to clipboard) (default: false)
   --ngrok, -n  starts an ngrok instance linking the snippet to it, see https://ngrok.com/. 
                Make sure to have it in your $PATH (default: false)
   --help, -h   show help (default: false)

Usage

$ echo A string to share | is
Avalible at 
  http://192.168.1.90:33361?key=tvfrMDT7nalI3zpn
  curl -o "itsy_share_2020-01-10T10:40:51+01:00.txt" "http://192.168.1.90:33361/download?key=tvfrMDT7nalI3zpn"
and url is copied to clipboard

$ is main.go 
Avalible at 
  http://192.168.1.90:36437?key=d5DZptt3pAopFh47
  curl -o "main.go" "http://192.168.1.90:36437/download?key=d5DZptt3pAopFh47"
and url is copied to clipboard



## Will terminat the server after first requet

$ echo A string to share | is -o
Avalible once at 
  http://192.168.1.90:41785?key=G3gPL9RmhEvCPEH4
  curl -o "itsy_share_2020-01-10T10:42:07+01:00.txt" "http://192.168.1.90:41785/download?key=G3gPL9RmhEvCPEH4"
and curl is copied to clipboard

$ is -o main.go 
Avalible once at 
  http://192.168.1.90:35627?key=buieogrUSCeRUOTK
  curl -o "main.go" "http://192.168.1.90:35627/download?key=buieogrUSCeRUOTK"
and curl is copied to clipboard

Examples

$ cat main.go | is
Avalible at
  http://192.168.1.90:43247?key=HO4y0jiacktUPiWl
  curl -o "itsy_share_2020-01-16T11:42:18+01:00.txt" "http://192.168.1.90:43247/download?key=HO4y0jiacktUPiWl"
and url is copied to clipboard

example1

$ is example.0.png
Avalible at
  http://192.168.1.90:40393?key=sGjbagdwqly1AyoS
  curl -o "example0.png" "http://192.168.1.90:40393/download?key=sGjbagdwqly1AyoS"
and url is copied to clipboard

example0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址