Skip to content

Commit 85bd036

Browse files
committed
Merge branch 'master' of github.com:qiniu/qshell
2 parents 2e168ab + 6e96c94 commit 85bd036

File tree

6 files changed

+54
-3
lines changed

6 files changed

+54
-3
lines changed

.github/workflows/ut-check.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ut-check
2+
on:
3+
# Trigger the workflow on push or pull request,
4+
# but only for the master branch
5+
push:
6+
paths-ignore:
7+
- '**.md'
8+
pull_request:
9+
paths-ignore:
10+
- '**.md'
11+
jobs:
12+
run:
13+
name: go test
14+
strategy:
15+
matrix:
16+
go-version: [1.13.x, 1.14.x]
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Install Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: ${{ matrix.go-version }}
23+
# This step checks out a copy of your repository.
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
- name: Go test
27+
run: |
28+
go test -coverprofile=coverage.txt ./...
29+
bash <(curl -s https://codecov.io/bash)

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ _testmain.go
2727
.idea
2828

2929
.vscode
30+
31+
# go test coverage file
32+
coverage.txt

OWNERS

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# see the OWNERS docs at https://go.k8s.io/owners
2+
3+
approvers:
4+
- CarlJi
5+
- bachue
6+
- YangSen-qn
7+
- Mei-Zhao
8+
- sxci
9+
reviewers:
10+
- CarlJi
11+
- bachue
12+
- YangSen-qn
13+
- Mei-Zhao
14+
- sxci

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# qshell
22

3+
[![LICENSE](https://img.shields.io/github/license/qiniu/qshell.svg)](https://github.com/qiniu/qshell/blob/master/LICENSE)
34
[![Go Report Card](https://goreportcard.com/badge/github.com/qiniu/qshell)](https://goreportcard.com/report/github.com/qiniu/qshell)
5+
[![codecov](https://codecov.io/gh/qiniu/qshell/branch/master/graph/badge.svg)](https://codecov.io/gh/qiniu/qshell)
6+
![](https://github.com/qiniu/qshell/workflows/ut-check/badge.svg)
7+
[![GitHub release](https://img.shields.io/github/v/tag/qiniu/qshell.svg?label=release)](https://github.com/qiniu/qshell/releases)
8+
[![GoDoc](https://img.shields.io/badge/Godoc-reference-blue.svg)](https://pkg.go.dev/github.com/qiniu/qshell)
49

510
## 简介
611

cmd/awsfetch.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (lo *awslistOptions) Run(cmd *cobra.Command, positionalArgs []string) {
7777
// Message from an error.
7878
fmt.Fprintln(os.Stderr, err.Error())
7979
}
80-
fmt.Fprintf(os.Stderr, "ContinuationToken: %s\n", input.ContinuationToken)
80+
fmt.Fprintf(os.Stderr, "ContinuationToken: %v\n", input.ContinuationToken)
8181
os.Exit(1)
8282
}
8383
for _, obj := range result.Contents {
@@ -166,7 +166,7 @@ func (o *awsfetchOptions) Run(cmd *cobra.Command, positionalArgs []string) {
166166
fmt.Fprintln(os.Stderr, err.Error())
167167
}
168168
close(itemc)
169-
fmt.Fprintf(os.Stderr, "ContinuationToken: %s\n", input.ContinuationToken)
169+
fmt.Fprintf(os.Stderr, "ContinuationToken: %v\n", input.ContinuationToken)
170170
os.Exit(1)
171171
}
172172
for _, obj := range result.Contents {

cmd/rsbatch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ func batchChtype(entries []iqshell.ChtypeEntryPath, bm *iqshell.BucketManager, f
804804
fmt.Fprintf(os.Stderr, "Chtype '%s' => '%d' Failed, Code: %d, Error: %s\n", entry.Key, entry.FileType, item.Code, item.Data.Error)
805805
} else {
806806
fileExporter.WriteToSuccessWriter(fmt.Sprintf("%s\n", entry.Key))
807-
fmt.Printf("Chtype '%s' => '%s' success\n", entry.Key, entry.FileType)
807+
fmt.Printf("Chtype '%s' => '%d' success\n", entry.Key, entry.FileType)
808808
}
809809
}
810810
}

0 commit comments

Comments
 (0)