Skip to content

Commit

Permalink
迁移gocloudcoder成功
Browse files Browse the repository at this point in the history
  • Loading branch information
nj-jay committed Jan 12, 2021
1 parent 221820b commit 241ba28
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions cmd/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func Account(cmd *cobra.Command, params []string) {

bucket := viper.GetString("bucket")

fmt.Println(ak)

if len(params) == 0 {

if ak== "" || sk== "" || bucket == "" {
Expand Down
8 changes: 1 addition & 7 deletions cmd/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func put(cmd *cobra.Command, params []string){

for _, path := range params {

index := strings.LastIndexAny(path, "/")
index := strings.LastIndexAny(path, "\\")

var upload string

Expand Down Expand Up @@ -140,14 +140,8 @@ func put(cmd *cobra.Command, params []string){
return
}

fmt.Println("upload successfully")

fmt.Println("外链为:")

fmt.Println("http://" + domains[0].Domain + "/" + upload)

fmt.Println()

}

}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/nj-jay/qiniu-cli
module github.com/gocloudcoder/qiniu-cli

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/
package main

import "github.com/nj-jay/qiniu-cli/cmd"
import "github.com/gocloudcoder/qiniu-cli/cmd"

func main() {
cmd.Execute()
Expand Down
Binary file added qn_linux
Binary file not shown.
Binary file added qn_mac
Binary file not shown.

0 comments on commit 241ba28

Please sign in to comment.