Skip to content

Commit 99647c9

Browse files
Update README examples
1 parent fc810bb commit 99647c9

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

README.md

+7-11
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ yarn global add ghlabels
2828
You can provide options as arguments or leave then blank and they will be prompted.
2929

3030
```sh
31-
ghlabels --owner foo --repo bar --token foobar --configFile ./path/somefile
31+
ghlabels --repository foo/bar --token foobar --file ./path/somefile
3232
```
3333

3434
Note: As an alternative you can provide options as enviroment variables (e.g. GITHUB_LABELS_TOKEN).
3535

3636
### Copy from another repo
3737

3838
```sh
39-
ghlabels copy --sourceOwner seegno --sourceRepo github-labels --targetOwner foo --targetRepo bar --token foobar
39+
ghlabels copy --source seegno/github-labels --target foo/bar --token foobar
4040
```
4141

4242
### List
4343

4444
```sh
45-
ghlabels list --owner seegno --repo github-labels
45+
ghlabels list --repository seegno/github-labels
4646
```
4747

4848
### Client
@@ -54,24 +54,20 @@ import { copyLabelsFromRepo, listLabels, updateLabels } from 'ghlabels';
5454

5555
// Example of copying labels from a source repo.
5656
copyLabelsFromRepo({
57-
owner: 'foo',
58-
repo: 'bar',
57+
source: 'seegno/github-labels'
58+
target: 'foo/bar',
5959
token: 'foobar'
6060
});
6161

6262
// Example of listing all labels from a repo.
6363
listLabels({
64-
owner: 'seegno',
65-
repo: 'github-labels',
64+
repository: 'seegno/github-labels',
6665
token: 'foobar'
6766
});
6867

6968
// Example of updating all labels from a repo.
7069
updateLabels({
71-
sourceOwner: 'seegno',
72-
sourceRepo: 'github-labels',
73-
targetOwner: 'foo',
74-
targetRepo: 'bar',
70+
repository: 'foo/bar',
7571
token: 'foobar'
7672
});
7773
```

0 commit comments

Comments
 (0)