Skip to content

Commit

Permalink
Changed flag name and updated version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBooker committed Sep 24, 2017
1 parent 539014f commit 75dc86e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Release](https://img.shields.io/badge/version-v0.3.0-blue.svg)](https://github.com/PeterBooker/WordPress-Directory-Slurper/releases/tag/v0.3.0)
[![Release](https://img.shields.io/badge/version-v0.4.0-blue.svg)](https://github.com/PeterBooker/WordPress-Directory-Slurper/releases/tag/v0.4.0)
[![Go Report Card](https://goreportcard.com/badge/github.com/PeterBooker/WordPress-Directory-Slurper)](https://goreportcard.com/report/github.com/PeterBooker/WordPress-Directory-Slurper)
[![License](https://img.shields.io/badge/license-GPL--2.0%2B-red.svg)](https://github.com/PeterBooker/WordPress-Directory-Slurper/blob/master/LICENSE)

Expand Down
8 changes: 4 additions & 4 deletions items.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func getAllItems(ctx *cli.Context, dir string) {
os.Exit(1)
}

fetchItems(items, dir, ctx.Int("limit"))
fetchItems(items, dir, ctx.Int("concurrent-actions"))

err = setCurrentRevision(revision, dir)
if err != nil {
Expand Down Expand Up @@ -77,7 +77,7 @@ func getUpdatedItems(ctx *cli.Context, dir string, rev int) {

items = getItemsList(dir, rev, lastRev)

fetchItems(items, dir, ctx.Int("limit"))
fetchItems(items, dir, ctx.Int("concurrent-actions"))

err = setCurrentRevision(lastRev, dir)
if err != nil {
Expand All @@ -90,7 +90,7 @@ func getUpdatedItems(ctx *cli.Context, dir string, rev int) {

}

func getItemsList(dir string, rev int, lastRev int) ([]string) {
func getItemsList(dir string, rev int, lastRev int) []string {

var items []string

Expand Down Expand Up @@ -153,7 +153,7 @@ func getItemsList(dir string, rev int, lastRev int) ([]string) {

}

func getBatchedItemsList(dir string, rev int, lastRev int) ([]string) {
func getBatchedItemsList(dir string, rev int, lastRev int) []string {

var items []string

Expand Down
6 changes: 3 additions & 3 deletions wpds.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

const (
version = "0.3.0"
version = "0.4.0"
userAgent = "wpds/" + version
)

Expand Down Expand Up @@ -96,7 +96,7 @@ func main() {
Usage: "Download all WordPress Plugins.",
Flags: []cli.Flag{
cli.IntFlag{
Name: "limit, l",
Name: "concurrent-actions, c",
Value: 10,
Usage: "Number of simultaneous downloads.",
},
Expand Down Expand Up @@ -128,7 +128,7 @@ func main() {
Usage: "Download all WordPress Themes.",
Flags: []cli.Flag{
cli.IntFlag{
Name: "limit, l",
Name: "concurrent-actions, c",
Value: 10,
Usage: "Number of simultaneous downloads.",
},
Expand Down

0 comments on commit 75dc86e

Please sign in to comment.