Update README with usage instructions, prepare to first release

This commit is contained in:
2019-03-30 08:07:13 +04:00
parent 6be8ec6672
commit 7a188bcbaa
5 changed files with 136 additions and 14 deletions

View File

@@ -62,15 +62,15 @@ func Process() {
sendCode(authCode)
}
filePath, _ := c.Flagger.GetStringValue("file")
if filePath != "" {
uploadPath, _ := c.Flagger.GetStringValue("uploadPath")
forceUpload, _ := c.Flagger.GetBoolValue("force")
uploadFile(uploadPath, filePath, forceUpload)
}
if !checkAuth() {
authorize()
} else {
filePath, _ := c.Flagger.GetStringValue("file")
if filePath != "" {
uploadPath, _ := c.Flagger.GetStringValue("uploadPath")
forceUpload, _ := c.Flagger.GetBoolValue("force")
uploadFile(uploadPath, filePath, forceUpload)
}
}
showHelp()