Skip to content

Commit

Permalink
rename root command: easyindex -> easyindex-cli (#16)
Browse files Browse the repository at this point in the history
* rename root command: easyindex -> easyindex-cli

* update README.md
  • Loading branch information
usk81 authored Apr 7, 2023
1 parent d545d33 commit d9f30fb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ updated:

```sh
# Mac / Linux:
easyindex google publish updated -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz
easyindex-cli google publish updated -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe google publish updated -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz
easyindex-cli.exe google publish updated -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz
```

deleted:

```sh
# Mac / Linux:
easyindex google publish deleted -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz
easyindex-cli google publish deleted -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe google publish deleted -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz
easyindex-cli.exe google publish deleted -C (your credential json file path) https://example.com/foobar https://example.com/fizzbizz
```

#### basic usage
Expand All @@ -88,20 +88,20 @@ updated:

```sh
# Mac /Linux:
easyindex google publish updated https://example.com/foobar https://example.com/fizzbizz
easyindex-cli google publish updated https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe google publish updated https://example.com/foobar https://example.com/fizzbizz
easyindex-cli.exe google publish updated https://example.com/foobar https://example.com/fizzbizz
```

deleted:

```sh
# Mac /Linux:
easyindex google publish updated https://example.com/foobar https://example.com/fizzbizz
easyindex-cli google publish updated https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe google publish updated https://example.com/foobar https://example.com/fizzbizz
easyindex-cli.exe google publish updated https://example.com/foobar https://example.com/fizzbizz
```

#### set quota
Expand All @@ -112,20 +112,20 @@ easyindex.exe google publish updated https://example.com/foobar https://example.
```sh
# Mac /Linux:
easyindex google publish updated -l 200 https://example.com/foobar https://example.com/fizzbizz
easyindex-cli google publish updated -l 200 https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe google publish updated -l 200 https://example.com/foobar https://example.com/fizzbizz
easyindex-cli.exe google publish updated -l 200 https://example.com/foobar https://example.com/fizzbizz
```

#### bulk request (updated & deleted)

```sh
# Mac / Linux:
easyindex google publish --csv index.csv
easyindex-cli google publish --csv index.csv

# Windows:
easyindex.exe google publish --csv index.csv
easyindex-cli.exe google publish --csv index.csv
```

### IndexNow
Expand All @@ -134,15 +134,15 @@ easyindex.exe google publish --csv index.csv

```sh
# Mac / Linux:
easyindex indexnow \
easyindex-cli indexnow \
-H https://example.com \
-k 978c7955fdd547848fd3901ba4321e24 \
-f https://example.com/978c7955fdd547848fd3901ba4321e24.txt \
-e https://www.bing.com \
https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe indexnow
easyindex-cli.exe indexnow
-H https://example.com
-k 978c7955fdd547848fd3901ba4321e24
-f https://example.com/978c7955fdd547848fd3901ba4321e24.txt
Expand All @@ -157,30 +157,30 @@ https://example.com/foobar https://example.com/fizzbizz
```sh
# Mac / Linux:
easyindex indexnow https://example.com/foobar https://example.com/fizzbizz
easyindex-cli indexnow https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe indexnow https://example.com/foobar https://example.com/fizzbizz
easyindex-cli.exe indexnow https://example.com/foobar https://example.com/fizzbizz
```

#### set quota

```sh
# Mac / Linux:
easyindex indexnow -q 1000 https://example.com/foobar https://example.com/fizzbizz
easyindex-cli indexnow -q 1000 https://example.com/foobar https://example.com/fizzbizz

# Windows:
easyindex.exe indexnow -q 1000 https://example.com/foobar https://example.com/fizzbizz
easyindex-cli.exe indexnow -q 1000 https://example.com/foobar https://example.com/fizzbizz
```

#### use csv

```sh
# Mac / Linux:
easyindex indexnow --csv index.csv
easyindex-cli indexnow --csv index.csv

# Windows:
easyindex.exe indexnow --csv index.csv
easyindex-cli.exe indexnow --csv index.csv
```

### Google & IndexNow
Expand All @@ -190,10 +190,10 @@ easyindex.exe indexnow --csv index.csv
```sh
# Mac / Linux:
easyindex publish --csv index.csv
easyindex-cli publish --csv index.csv

# Windows:
easyindex.exe publish --csv index.csv
easyindex-cli.exe publish --csv index.csv
```

## Parameters
Expand Down
2 changes: 1 addition & 1 deletion commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
var (
// RootCmd sets task command config
RootCmd = &cobra.Command{
Use: "easyindex",
Use: "easyindex-cli",
Run: func(cmd *cobra.Command, args []string) {
cmd.Usage() // nolint
},
Expand Down

0 comments on commit d9f30fb

Please sign in to comment.