Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
Signed-off-by: Waldemar Quevedo <wally@synadia.com>
  • Loading branch information
wallyqs committed Sep 7, 2020
1 parent ee0de3b commit 8d0f41e
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 38 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
@@ -1,16 +1,12 @@
# Travis CI (http://travis-ci.org/) is a continuous integration
# service for open source projects. This file configures it
# to run unit tests for docopt-go.
# to run unit tests for docopt.go.

language: go

go:
- 1.4
- 1.5
- 1.6
- 1.7
- 1.8
- 1.9
- 1.14
- 1.15
- tip

matrix:
Expand Down
14 changes: 4 additions & 10 deletions README.md
@@ -1,4 +1,4 @@
docopt-go
docopt.go
=========

[![Build Status](https://travis-ci.org/docopt/docopt.go.svg?branch=master)](https://travis-ci.org/docopt/docopt.go)
Expand All @@ -14,7 +14,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down Expand Up @@ -44,16 +44,10 @@ Options:

## Installation

⚠ Use the alias "docopt-go". To use docopt in your Go code:

```go
import "github.com/docopt/docopt-go"
```

To install docopt in your `$GOPATH`:

```console
$ go get github.com/docopt/docopt-go
$ go get github.com/docopt/docopt.go
```

## API
Expand Down Expand Up @@ -103,7 +97,7 @@ var config struct {
opts.Bind(&config)
```

More documentation is available at [godoc.org](https://godoc.org/github.com/docopt/docopt-go).
More documentation is available at [godoc.org](https://pkg.go.dev/github.com/docopt/docopt.go).

## Unit Testing

Expand Down
2 changes: 1 addition & 1 deletion examples/arguments/arguments.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

var usage = `Usage: arguments [-vqrh] [FILE] ...
Expand Down
2 changes: 1 addition & 1 deletion examples/arguments/arguments_test.go
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go/examples"
"github.com/docopt/docopt.go/examples"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion examples/calculator/calculator.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

var usage = `Not a serious example.
Expand Down
2 changes: 1 addition & 1 deletion examples/calculator/calculator_test.go
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go/examples"
"github.com/docopt/docopt.go/examples"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion examples/config_file/config_file.go
Expand Up @@ -3,7 +3,7 @@ package main
import (
"encoding/json"
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/counted/counted.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

var usage = `Usage: counted --help
Expand Down
2 changes: 1 addition & 1 deletion examples/counted/counted_test.go
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go/examples"
"github.com/docopt/docopt.go/examples"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion examples/examples.go
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"strings"

"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

// TestUsage is a helper used to test the output from the examples in this folder.
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/branch/git_branch.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/checkout/git_checkout.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/clone/git_clone.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/fakegit.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
"os"
"os/exec"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/push/git_push.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fake-git/remote/git_remote.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/naval_fate/naval_fate.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/odd_even/odd_even.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/options/options.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/options_shortcut/options_shortcut.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/quick/quick.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/type_assert/type_assert.go
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/unit_test/unit_test.go
@@ -1,7 +1,7 @@
package main

import (
"github.com/docopt/docopt-go"
"github.com/docopt/docopt.go"
"reflect"
"testing"
)
Expand Down

0 comments on commit 8d0f41e

Please sign in to comment.