Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mschneider82 committed Nov 28, 2018
1 parent 8d793a5 commit 6c234d5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
![gopher](gopher.png)

# Go Share files!

Share your files easily with friends using Cloudproviders.

# Supported Cloud Providers:

* Dropbox
* Google Drive

# Howto share?

```
user@srv# sharecmd /etc/hosts
Uploading 361 B/361 B
2018/11/28 19:03:07 URL: https://drive.google.com/open?id=1C77TZBMT0PESUvsIPetGzrK36LqGFqza
URL copied to clipboard!
```

# Howto setup?

```
user@srv# sharecmd --setup
```

# Notes:
Sharecmd uploads the file to the configured cloud provider and does a public
share of the file for anyone who has the link. The link will be copyed to system
clipboard (windows/linux/macos)

# Provider Notes:

## Dropbox:
It uploads alls files to /Apps/sharecmd (folder auto generated)

## Googledrive:
It uploads alls files to /sharecmd (folder may needs to be created)


# Documentation:
[![GoDoc](https://godoc.org/github.com/mschneider82/easygo?status.svg)](https://godoc.org/github.com/mschneider82/easygo)
1 change: 1 addition & 0 deletions clipboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func toClip(output string) {
if err := clipboard.WriteAll(output); err != nil {
log.Fatalf("Can't copy link to clipboard: %s", err.Error())
}
log.Println("URL copied to clipboard!")
}

func toClipDeprecated(output string) {
Expand Down
2 changes: 0 additions & 2 deletions googledrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"os"
"path/filepath"

"github.com/davecgh/go-spew/spew"
humanize "github.com/dustin/go-humanize"
//"github.com/mitchellh/ioprogress"
"github.com/coreos/ioprogress"
Expand Down Expand Up @@ -122,7 +121,6 @@ func getOrCreateFolder(d *drive.Service, folderName string) string {
if err != nil {
log.Fatalf("Unable to retrieve foldername: %s", err.Error())
}
spew.Dump(r.Files)
if len(r.Files) > 0 {
folderID = r.Files[0].Id
} else {
Expand Down
Binary file modified gopher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6c234d5

Please sign in to comment.