github-blob-sender

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2015 License: JSON Imports: 8 Imported by: 0

README

github-blob-sender Build Status

Send a file into github blob in command line (written in golang). The main goal is to store and restore file (large or medium) in github. Those files will not be visible on your github repo (instead of github lfs) and will can be only downloaded if you know the link.

github-blob-sender can upload file from your computer into a github repo and keep trace of these upload into a file (A .github-blob-sender file) and could restore uploaded file with a checksum verification to be reliable.

Installation

On *nix system

You can install this via the command-line with either curl or wget.

via curl
$ sh -c "$(curl -fsSL https://raw.github.com/ArthurHlt/github-blob-sender/master/bin/install.sh)"
via wget
$ sh -c "$(wget https://raw.github.com/ArthurHlt/github-blob-sender/master/bin/install.sh -O -)"
On windows

You can install it by downloading the .exe corresponding to your cpu from releases page: https://github.com/ArthurHlt/github-blob-sender/releases . Alternatively, if you have terminal interpreting shell you can also use command line script above, it will download file in your current working dir.

From go command line

Simply run in terminal:

$ go get github.com/ArthurHlt/github-blob-sender

If compile failed you can use godep to restore dependencies:

$ go get github.com/tools/godep # if you haven't godep
$ cd $GOPATH/src/github.com/ArthurHlt/github-blob-sender
$ godep restore
$ go get github.com/ArthurHlt/github-blob-sender

Usage

Global command
NAME:
   github-blob-sender - Store and restore file from github blob api

USAGE:
   github-blob-sender [global options] command [command options] [arguments...]

COMMANDS:
   store, s		Store file to github blob
   cat, c		Cat file from github blob
   restore, r		Restore file from github blob
   restore-all, a	Restore all registered files in folder from github blob
   list, l		List registered files
   help, h		Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h		show help
   --version, -v	print the version
store command
NAME:
   github-blob-sender store - Store file to github blob

USAGE:
   github-blob-sender store [command options] [file1 file2 ...]

OPTIONS:
   --github-token, --gt 	Set your github token (optional if already set or GITHUB_TOKEN env var set)
   --owner, -o 			Which org or user you own to send file
   --repo, -r 			Which repo you own to send file
cat command
NAME:
   github-blob-sender cat - Cat file from github blob

USAGE:
   github-blob-sender cat [command options] [file-name] (Note: file-name can be listed with list command)

OPTIONS:
   --github-token, --gt 	Set your github token (optional if already set or GITHUB_TOKEN env var set)
   --owner, -o 			Which org or user you own to send file (optional)
   --repo, -r 			Which repo you own to send file (optional)

TIP: owner and repo flags are optional if only one file with this name is registered in .github-blob-sender file

restore command
NAME:
   github-blob-sender restore - Restore file from github blob

USAGE:
   github-blob-sender restore [command options] [file-name] (Note: file-name can be listed with list command)

OPTIONS:
   --github-token, --gt 	Set your github token (optional if already set or GITHUB_TOKEN env var set)
   --owner, -o 			Which org or user you own to send file (optional)
   --repo, -r 			Which repo you own to send file (optional)
   --output 			Set where to write the downloaded file

TIP: owner and repo flags are optional if only one file with this name is registered in .github-blob-sender file

restore-all command
NAME:
   github-blob-sender restore-all - Restore all registered files in folder from github blob

USAGE:
   github-blob-sender restore-all [command options] [folder/to/put/downloaded/file]

OPTIONS:
   --create-folders, --create-folder, -c	Create folders if not exist
list command
NAME:
   github-blob-sender list - List registered files

USAGE:
   github-blob-sender list [command options] [arguments...]

OPTIONS:
   --show-github-sha1, -g	Show github checksum (in sha1)
   --show-registered-sha1, -r	Show registered checksum (in sha1)
   --show-link, -l		Show github link

Example output:

+-----------+-----------+--------------------+
|   NAME    |   OWNER   |        REPO        |
+-----------+-----------+--------------------+
| FILE1     | ArthurHlt | github-blob-sender |
| FILE2     | ArthurHlt | github-blob-sender |
+-----------+-----------+--------------------+

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
_workspace/src/github.com/codegangsta/cli
Package cli provides a minimal framework for creating and organizing command line Go applications.
Package cli provides a minimal framework for creating and organizing command line Go applications.
_workspace/src/github.com/daviddengcn/go-colortext
ct package provides functions to change the color of console text.
ct package provides functions to change the color of console text.
_workspace/src/github.com/google/go-github/github
Package github provides a client for using the GitHub API.
Package github provides a client for using the GitHub API.
_workspace/src/github.com/google/go-querystring/query
Package query implements encoding of structs into URL query parameters.
Package query implements encoding of structs into URL query parameters.
_workspace/src/github.com/nicksnyder/go-i18n/i18n
Package i18n supports string translations with variable substitution and CLDR pluralization.
Package i18n supports string translations with variable substitution and CLDR pluralization.
_workspace/src/github.com/nicksnyder/go-i18n/i18n/bundle
Package bundle manages translations for multiple languages.
Package bundle manages translations for multiple languages.
_workspace/src/github.com/nicksnyder/go-i18n/i18n/language
Package language defines languages that implement CLDR pluralization.
Package language defines languages that implement CLDR pluralization.
_workspace/src/github.com/nicksnyder/go-i18n/i18n/translation
Package translation defines the interface for a translation.
Package translation defines the interface for a translation.
_workspace/src/github.com/olekukonko/tablewriter
Create & Generate text based table
Create & Generate text based table
_workspace/src/golang.org/x/net/context
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
_workspace/src/golang.org/x/net/context/ctxhttp
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
_workspace/src/golang.org/x/oauth2
Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests.
Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests.
_workspace/src/golang.org/x/oauth2/bitbucket
Package bitbucket provides constants for using OAuth2 to access Bitbucket.
Package bitbucket provides constants for using OAuth2 to access Bitbucket.
_workspace/src/golang.org/x/oauth2/clientcredentials
Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0".
Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0".
_workspace/src/golang.org/x/oauth2/facebook
Package facebook provides constants for using OAuth2 to access Facebook.
Package facebook provides constants for using OAuth2 to access Facebook.
_workspace/src/golang.org/x/oauth2/github
Package github provides constants for using OAuth2 to access Github.
Package github provides constants for using OAuth2 to access Github.
_workspace/src/golang.org/x/oauth2/google
Package google provides support for making OAuth2 authorized and authenticated HTTP requests to Google APIs.
Package google provides support for making OAuth2 authorized and authenticated HTTP requests to Google APIs.
_workspace/src/golang.org/x/oauth2/internal
Package internal contains support packages for oauth2 package.
Package internal contains support packages for oauth2 package.
_workspace/src/golang.org/x/oauth2/jws
Package jws provides encoding and decoding utilities for signed JWS messages.
Package jws provides encoding and decoding utilities for signed JWS messages.
_workspace/src/golang.org/x/oauth2/jwt
Package jwt implements the OAuth 2.0 JSON Web Token flow, commonly known as "two-legged OAuth 2.0".
Package jwt implements the OAuth 2.0 JSON Web Token flow, commonly known as "two-legged OAuth 2.0".
_workspace/src/golang.org/x/oauth2/linkedin
Package linkedin provides constants for using OAuth2 to access LinkedIn.
Package linkedin provides constants for using OAuth2 to access LinkedIn.
_workspace/src/golang.org/x/oauth2/odnoklassniki
Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki.
Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki.
_workspace/src/golang.org/x/oauth2/paypal
Package paypal provides constants for using OAuth2 to access PayPal.
Package paypal provides constants for using OAuth2 to access PayPal.
_workspace/src/golang.org/x/oauth2/vk
Package vk provides constants for using OAuth2 to access VK.com.
Package vk provides constants for using OAuth2 to access VK.com.

Jump to

Keyboard shortcuts

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