Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Sep 5, 2019
1 parent c186026 commit 10320bc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apa
13 changes: 13 additions & 0 deletions load.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

func (c *cassowary) coordinate() error {

if c.fileMode {
urlSuffixes, err := readFile(c.inputFile)
if err != nil {
return err
}
}

return nil
}
20 changes: 17 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var (
)

type cassowary struct {
fileMode bool
inputFile string
baseURL string
concurrencyLevel int
Expand All @@ -45,17 +46,19 @@ func validateRun(c *cli.Context) error {
promExport = false
} else {
promExport = true
promGwURL = promGwURL
}

cass := &cassowary{
fileMode: false,
baseURL: baseURL,
concurrencyLevel: concurrencyLevel,
requests: noOfRequests,
promExport: promExport,
promURL: promGwURL,
}

cass.coordinate()

return nil
}

Expand All @@ -73,14 +76,25 @@ func validateRunFile(c *cli.Context) error {
promExport = false
} else {
promExport = true
promGwURL = promGwURL
}

cass := &cassowary{
fileMode: true,
baseURL: baseURL,
concurrencyLevel: concurrencyLevel,
requests: noOfRequests,
promExport: promExport,
promURL: promGwURL,
}

cass.coordinate()

return nil
}

func main() {
app := cli.NewApp()
app.Name = "cassowary - 食火鸡"
app.Name = "cassowary - 鹤鸵"
app.HelpName = "cassowary"
app.UsageText = "cassowary [command] [command options] [arguments...]"
app.EnableBashCompletion = true
Expand Down

0 comments on commit 10320bc

Please sign in to comment.