GithubHelp home page GithubHelp logo

danlamanna / rivet Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 1.0 59 KB

a tiny cli for syncing a directory with a girder instance

License: Apache License 2.0

Go 93.37% Shell 3.74% Makefile 2.89%
girder

rivet's Introduction

rivet

a tiny cli for syncing a directory with a girder instance

asciicast

installation

mac

sudo curl -sL -o /usr/local/bin/rivet https://github.com/danlamanna/rivet/releases/download/v0.0.5/rivet-0.0.5-darwin-amd64
sudo chmod +x /usr/local/bin/rivet

linux

sudo curl -sL -o /usr/local/bin/rivet https://github.com/danlamanna/rivet/releases/download/v0.0.5/rivet-0.0.5-linux-amd64
sudo chmod +x /usr/local/bin/rivet

usage

rivet sync --auth "username:password" --url data.kitware.com path/to/local/dir girder://somegirderfolderid

to avoid passing credentials multiple times, use rivet configure.

limitations

Due to the difficulty in representing Girder items in the context of a POSIX filesystem, items with 0 files and items with multiple files are ignored. There is no way to use rivet to upload or download these.

Additionally, rivet doesn't attempt to sync item or folder metadata. It's purely a tool for syncing blobs of data to their respective folders.

If you require support for these use cases, consider a more comprehensive tool such as girder-client.

rivet's People

Contributors

danlamanna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mgrauer

rivet's Issues

build fails with `undefined: os.UserHomeDir`

succesfully built on my laptop, but when try to build on another box (debian buster) - fails :-/

(git)smaug:~/proj/dandi/3rd-party/rivet[master]
$> make build
building rivet 0.0.4
GOPATH=/home/yoh/gocode
mkdir -p bin
GOOS=darwin GOARCH=amd64 go build \
                -ldflags "-X github.com/danlamanna/rivet/version.GitCommit=1dcda68028d5d42a2b146bcd630bf7d3714ebe14 -X github.com/danlamanna/rivet/version.BuildDate=2020-02-21-16:30:45" \
          -gcflags "all=-trimpath=/home/yoh/gocode" \
    -o bin/rivet-darwin
go: finding github.com/hashicorp/go-retryablehttp v0.6.0
go: finding github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4
go: finding github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: finding github.com/burntsushi/toml v0.3.1
go: finding github.com/hashicorp/go-version v1.2.0
go: finding github.com/sirupsen/logrus v1.4.2
go: finding github.com/hashicorp/go-cleanhttp v0.5.0
go: finding github.com/hashicorp/go-hclog v0.9.2
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/stretchr/objx v0.1.1
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding github.com/stretchr/testify v1.2.2
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/burntsushi/toml v0.3.1
go: downloading github.com/hashicorp/go-version v1.2.0
go: downloading github.com/hashicorp/go-retryablehttp v0.6.0
go: downloading github.com/hashicorp/go-hclog v0.9.2
go: downloading github.com/hashicorp/go-cleanhttp v0.5.0
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4
go: downloading golang.org/x/sys v0.0.0-20190422165155-953cdadca894
# github.com/danlamanna/rivet/config
config/config.go:27:18: undefined: os.UserHomeDir
config/config.go:56:18: undefined: os.UserHomeDir
note: module requires Go 1.12make: *** [Makefile:25: build] Error 2
make build  28.66s user 3.25s system 253% cpu 12.601 total 

any advice would be welcome ;)

progress status

great tool! It's working like a charm for uploading data to DANDI. It would be nice if there were some progress reports for long uploads. Like a progress bar with a time estimate.

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.