Skip to content

Commit

Permalink
Merge branch 'release/v1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
moooofly committed Feb 11, 2019
2 parents e48f897 + 786cd73 commit fa9e9d5
Show file tree
Hide file tree
Showing 27 changed files with 65 additions and 27 deletions.
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# you may remove this if you don't use vgo
#- go mod download
# you may remove this if you don't need go generate
#- go generate ./...
builds:
- env:
- CGO_ENABLED=0
archive:
replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
env_files:
github_token: ~/.config/goreleaser/github_token
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
script:
- make lint
- make test
- make misspell
- make build

notifications:
email: [email protected]
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.1.0"></a>
# [1.1.0](https://github.com/moooofly/harborctl/compare/v1.0.1...v1.1.0) (2019-02-11)


### Features

* add .goreleaser.yml ([aeb9c07](https://github.com/moooofly/harborctl/commit/aeb9c07))



<a name="1.0.1"></a>
# [1.0.1](https://github.com/moooofly/harborctl/compare/v1.0.0...v1.0.1) (2019-02-11)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.1.0
2 changes: 1 addition & 1 deletion cmd/chartrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var chartrepoURL string
var chartrepoCmd = &cobra.Command{
Use: "chartrepo",
Short: "'/chartrepo' API.",
Long: `The subcommand of '/chartrepo' hierachy.`,
Long: `The subcommand of '/chartrepo' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
chartrepoURL = utils.URLGen("/api/chartrepo")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/chartrepo_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
var chartCmd = &cobra.Command{
Use: "chart",
Short: "'/chartrepo/{repo}/charts' API.",
Long: `The subcommand of '/chartrepo/{repo}/charts' hierachy.`,
Long: `The subcommand of '/chartrepo/{repo}/charts' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl chartrepo chart --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/chartrepo_chart_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
var chartLabelCmd = &cobra.Command{
Use: "label",
Short: "'/chartrepo/{repo}/charts/{name}/{version}/labels' API.",
Long: `'The subcommand of '/chartrepo/{repo}/charts/{name}/{version}/labels' hierachy.`,
Long: `'The subcommand of '/chartrepo/{repo}/charts/{name}/{version}/labels' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl chartrepo chart label --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/chartrepo_prov.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
var provCmd = &cobra.Command{
Use: "prov",
Short: "'/chartrepo/{repo}/prov' API.",
Long: `The subcommand of '/chartrepo/{repo}/prov' hierachy.`,
Long: `The subcommand of '/chartrepo/{repo}/prov' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl chartrepo prov --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var internalURL string
var internalCmd = &cobra.Command{
Use: "internal",
Short: "'/internal' API.",
Long: `The subcommand of '/internal' hierachy.`,
Long: `The subcommand of '/internal' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
internalURL = utils.URLGen("/api/internal")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var labelURL string
var labelCmd = &cobra.Command{
Use: "label",
Short: "'/labels' API.",
Long: `The subcommand of '/labels' hierachy.`,
Long: `The subcommand of '/labels' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
labelURL = utils.URLGen("/api/labels")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func loginProc(resp gorequest.Response, body string, errs []error) {
return
}

// TODO(moooofly): can do something usefull based on response code
// TODO(moooofly): can do something useful based on response code
fmt.Println("<== Rsp Status:", resp.Status)
fmt.Println("<== Rsp Body:", body)

Expand Down
4 changes: 2 additions & 2 deletions cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var projectURL string
var projectCmd = &cobra.Command{
Use: "project",
Short: "'/projects' API.",
Long: `The subcommand of '/projects' hierachy.`,
Long: `The subcommand of '/projects' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
projectURL = utils.URLGen("/api/projects")
},
Expand Down Expand Up @@ -299,7 +299,7 @@ var prjList struct {
name string

// NOTE:
// As per swagger file defination, the type of 'public' is boolean.
// As per swagger file definition, the type of 'public' is boolean.
// I change the type of 'public' from boolean to string in order for three-valued logic
// 1. If true/TRUE/1, only public projects returned
// 2. If false/FALSE/0, only private projects returned
Expand Down
2 changes: 1 addition & 1 deletion cmd/project_member.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
var memberCmd = &cobra.Command{
Use: "member",
Short: "'/projects/{project_id}/members' API.",
Long: `The subcommand of '/projects/{project_id}/members' hierachy.`,
Long: `The subcommand of '/projects/{project_id}/members' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl project member --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/project_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
var metadataCmd = &cobra.Command{
Use: "metadata",
Short: "'/projects/{project_id}/metadatas' API.",
Long: `The subcommand of '/projects/{project_id}/metadatas' hierachy.`,
Long: `The subcommand of '/projects/{project_id}/metadatas' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl project metadata --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var targetsURL string
var targetCmd = &cobra.Command{
Use: "registry",
Short: "'/targets' API.",
Long: `The subcommand of '/targets' hierachy.`,
Long: `The subcommand of '/targets' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
targetsURL = utils.URLGen("/api/targets")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var jobURL string
var replicationCmd = &cobra.Command{
Use: "replication",
Short: "'/replications' API",
Long: `The subcommand of '/replications' hierachy.`,
Long: `The subcommand of '/replications' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
replicationURL = utils.URLGen("/api/replications")
jobURL = utils.URLGen("/api/jobs")
Expand Down
4 changes: 2 additions & 2 deletions cmd/replication_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var policyURL string
var policyReplicationCmd = &cobra.Command{
Use: "policy",
Short: "'/policies/replication' API.",
Long: `The subcommand of '/policies/replication' hierachy.`,
Long: `The subcommand of '/policies/replication' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
policyURL = utils.URLGen("/api/policies")
},
Expand Down Expand Up @@ -269,7 +269,7 @@ func initPolicyCreate() {
policyCreateCmd.Flags().StringVarP(&policyCreate.filterByLabelIDs,
"label_ids_as_filter",
"", "",
"The label IDs used as filter. NOTE: you can specify multiple label IDs seperated by comma.")
"The label IDs used as filter. NOTE: you can specify multiple label IDs separated by comma.")
}

type filter struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var repositoryURL string
var repositoryCmd = &cobra.Command{
Use: "repository",
Short: "'/repositories' API.",
Long: `The subcommand of '/repositories' hierachy.`,
Long: `The subcommand of '/repositories' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
repositoryURL = utils.URLGen("/api/repositories")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/repository_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
var repoLabelCmd = &cobra.Command{
Use: "label",
Short: "'/repositories/{repo_name}/labels' API.",
Long: `The subcommand of '/repositories/{repo_name}/labels' hierachy.`,
Long: `The subcommand of '/repositories/{repo_name}/labels' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl repository label --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/repository_scanall.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
var scanallCmd = &cobra.Command{
Use: "scanall",
Short: "Scan all images of the registry. (NOTE: need Clair deployed)",
Long: `The server will launch different jobs to scan each image on the regsitry, so this is equivalent to calling the API to
Long: `The server will launch different jobs to scan each image on the registry, so this is equivalent to calling the API to
scan the image one by one in background, so there's no way to track the overall status of the "scan all" action.
NOTE:
Expand Down
2 changes: 1 addition & 1 deletion cmd/repository_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
var tagCmd = &cobra.Command{
Use: "tag",
Short: "'/repositories/{repo_name}/tags' API.",
Long: `The subcommand of '/repositories/{repo_name}/tags' hierachy.`,
Long: `The subcommand of '/repositories/{repo_name}/tags' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl repository tag --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/repository_tag_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
var tagLabelCmd = &cobra.Command{
Use: "label",
Short: "'/repositories/{repo_name}/tags/{tag}/labels' API.",
Long: `The subcommand of '/repositories/{repo_name}/tags/{tag}/labels' hierachy.`,
Long: `The subcommand of '/repositories/{repo_name}/tags/{tag}/labels' hierarchy.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl repository label --help\" for more information about this command.")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
var scanCmd = &cobra.Command{
Use: "scan",
Short: "'/jobs/scan' API.",
Long: `The subcommand of '/jobs/scan' hierachy.`,
Long: `The subcommand of '/jobs/scan' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
jobURL = utils.URLGen("/api/jobs")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/systeminfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var systeminfoURL string
var systeminfoCmd = &cobra.Command{
Use: "systeminfo",
Short: "'/systeminfo' API.",
Long: `The subcommand of '/systeminfo' hierachy.`,
Long: `The subcommand of '/systeminfo' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
systeminfoURL = utils.URLGen("/api/systeminfo")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var userURL string
var userCmd = &cobra.Command{
Use: "user",
Short: "'/users' API.",
Long: `The subcommand of '/users' hierachy.`,
Long: `The subcommand of '/users' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
userURL = utils.URLGen("/api/users")
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/user_current.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
var currentCmd = &cobra.Command{
Use: "current",
Short: "Show info about current login user only.",
Long: `This endpoint is to get the current user infomation (Maybe 'whoami' is a better one).`,
Long: `This endpoint is to get the current user information (Maybe 'whoami' is a better one).`,
Run: func(cmd *cobra.Command, args []string) {
getCurrentUser()
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/usergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var usergroupURL string
var usergroupCmd = &cobra.Command{
Use: "usergroup",
Short: "'/usergroups' API.",
Long: `The subcommand of '/usergroups' hierachy.`,
Long: `The subcommand of '/usergroups' hierarchy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
usergroupURL = utils.URLGen("/api/usergroups")
},
Expand Down

0 comments on commit fa9e9d5

Please sign in to comment.