GithubHelp home page GithubHelp logo

trans-cli-go's Introduction

trans-cli

Command Line Interface for Trans Server

branch Travis status
master Build Status
develop Build Status

demo1

Installation

brew install nwtgck/homebrew-trans/trans

Send/Get File

Commands bellow are examples of sending/getting.

Send

trans send ./my_video.mp4

Get

trans get jht

(File ID, jht is saved as jht file in $PWD)

Other Usages

Change Server

Command bellow sets Trans Server URL to https://trans-akka.herokuapp.com.

trans use https://trans-akka.herokuapp.com

Use trans config server to print server URL.

Delete a file

trans delete jht

Parallel Download

Use -p or --parallel for parallel download.

trans get -p jht

Safe Sending with Long ID

Use -l or --id-length to specify File ID length.

$ trans send -l 32 my_video.mp4
mn6pbf8jtxfvesct8zcpzwbxe4e5i85v

Safe Sending with Limit

Use -t or --get-times to specify download-limit.

$ trans send -t 1 my_video.mp4
ab2

Safe Sending with Store Duration

Use --duration to specify store duration.

$ trans send --duration=30s my_video.mp4
ab2

Other Flags

Use trans send -h to know more information.

$ trans send -h
Send a file

Usage:
  trans send [flags]

Flags:
      --deletable           whether file is deletable or not (default true)
      --delete-key string   key for deletion
      --duration string     store duration (e.g. 10s, 5m, 12h, 3d) (default "1h")
  -t, --get-times int       download limit (e.g. 1, 10) (default 100)
  -h, --help                help for send
  -l, --id-length int       length of ID (e.g. 3, 10) (default 3)
  -q, --quiet               disable progress bar or not

Global Flags:
  -s, --server string   Trans Server URL

Configuration

Server alias

Here is examples to set aliases

trans config alias heroku https://trans-akka.herokuapp.com
trans config alias ibm https://trans-akka.mybluemix.net

Then, you can set server like trans use heroku or trans use ibm.

trans-cli-go's People

Contributors

nwtgck avatar dependabot-support avatar

Stargazers

Andrew Johnson avatar

Watchers

James Cloos avatar  avatar  avatar

trans-cli-go's Issues

Dependabot cannot be upgraded to GitHub-native version due to unsupported `dep` package manager

Dependabot Preview will be shut down on August 3rd, 2021.

It appears that this repository has configured updates for dep.

The GitHub-native version of Dependabot does not support dep, which was deprecated as of 2020.
Guidance from the dep maintainers is to upgrade to go mod, which Dependabot supports.

In order to keep getting updates for your Go dependencies, you'll need to migrate to go mod and add a Dependabot configuration for it to this repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.