forked from keyshade-xyz/keyshade
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): Implemented pagination support (keyshade-xyz#453)
- Loading branch information
1 parent
ad48593
commit 2ec6577
Showing
4 changed files
with
59 additions
and
147 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
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,31 @@ | ||
import { CommandOption } from '@/types/command/command.types' | ||
|
||
export const PAGINATION_OPTION: CommandOption[] = [ | ||
{ | ||
short: '-p', | ||
long: '--page <int>', | ||
description: 'Index of the page.' | ||
}, | ||
{ | ||
short: '-l', | ||
long: '--limit <int>', | ||
description: 'Total number of items per page.' | ||
}, | ||
{ | ||
short: '-o', | ||
long: '--order <string>', | ||
description: | ||
'Order to sort by - either ascending (ASC) or descending (DESC).', | ||
choices: ['ASC', 'DESC'] | ||
}, | ||
{ | ||
short: '--sort', | ||
long: '--sort <string>', | ||
description: 'Field to sort by.' | ||
}, | ||
{ | ||
short: '-s', | ||
long: '--search <string>', | ||
description: 'Search term.' | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.