tshare

command module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 15 Imported by: 0

README

File share service that optimized for command line

Features

  • Optimized for shell use, just curl and wget to share file
  • Share file anonymous, no login required
  • File will be deleted after 7 days by default

Start

  • Docker

    • docker run -p 3000:3000 -v ./data:/.tshare --restart always qianlifeng/tshare

    • docker-compose.yml

      version: "3"
      services:
        portainer:
          container_name: tshare
          image: qianlifeng/tshare
          ports:
            - 3000:3000
          volumes:
            - ./data:/.tshare
          restart: always
      
  • Manual

    • Download executable binary from release and start it

Config

  • Add following shell script to your ~/.zshrc or ~/.bashrc

    share() { curl --progress-bar -F "file=@$1" http://[yourdomain or ip] | tee /dev/null }   
    
  • Use share [file] to upload file, you will get a link that can be downloaded by wget [link]

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