-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #436 from calibreapp/update-command-descriptions
Update command descriptions (CAL-397)
- Loading branch information
Showing
57 changed files
with
528 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`missing subcommand 1`] = ` | ||
" | ||
Not enough non-option arguments: got 0, need at least 1 | ||
calibre team <command> | ||
Use the team command to manage Teams. | ||
Commands: | ||
calibre team list List Teams based on API Token access. For Admin Tokens, thi | ||
s will list all teams or as specified based on your setting | ||
s. For Personal Access Tokens, this will list Teams that yo | ||
u have access to. | ||
Options: | ||
--help Show help [boolean] | ||
--version Show version number [boolean]" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { runCLI } from '../utils' | ||
|
||
test('missing subcommand', async () => { | ||
const out = await runCLI({ args: 'team', testForError: true }) | ||
expect(out).toMatchSnapshot() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`team list lists all teams 1`] = ` | ||
"2 sites | ||
SLUG | NAME | DESCRIPTION | ||
calibre | Calibre | Default team | ||
engineering | Monitors | Engineering team" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { | ||
runCLI, | ||
setupIntegrationServer, | ||
teardownIntegrationServer | ||
} from '../../utils' | ||
|
||
import listTeams from '../../fixtures/listTeams.json' | ||
|
||
describe('team list', () => { | ||
beforeAll(() => setupIntegrationServer(listTeams)) | ||
afterAll(() => teardownIntegrationServer()) | ||
|
||
test('lists all teams', async () => { | ||
const out = await runCLI({ | ||
args: 'team list' | ||
}) | ||
expect(out).toMatchSnapshot() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"data": { | ||
"organisation": { | ||
"teams": [ | ||
{ | ||
"name": "Calibre", | ||
"description": "Default team", | ||
"slug": "calibre" | ||
}, | ||
{ | ||
"name": "Monitors", | ||
"description": "Engineering team", | ||
"slug": "engineering" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "calibre", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"engines": { | ||
"node": ">= 14.18" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { request } from './graphql.js' | ||
|
||
const LIST_QUERY = ` | ||
query { | ||
organisation { | ||
teams { | ||
name | ||
description | ||
slug | ||
} | ||
} | ||
} | ||
` | ||
|
||
const list = async () => { | ||
const response = await request({ query: LIST_QUERY }) | ||
return response.organisation.teams | ||
} | ||
|
||
export { list } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.