-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: load command's actions async to improve performance (#6180)
* feat: convert addon-auth * feat: convert addons:config * feat: convert addons:create * feat: convert addons:delete * feat: convert addons:list * feat: convert api * feat: types * feat: convert build, and types * feat: convert blobs:delelte * feat: convert blobs:get * feat: convert blobs:list * feat: convert blobs:set * feat: remove import * feat: convert completion * feat: convert deploy * feat: convert dev * feat: convert env:get * feat: convert env:import * feat: convert env:list * feat: convert env:set * feat: convert env:unset * feat: convert env:clone * feat: convert functions:build * feat: convert functions:create * feat: convert functions:invoke * feat: convert functions:list * feat: convert functions: serve * feat: convert init * chore: format * feat: convert integration * feat: convert link * feat: convert lm:info * feat: convert lm:install * feat: convert lm:setup * feat: convert lm:uninstall * feat: convert login * feat: convert logout * feat: convert logs:deploy * feat: convert logs:functions * feat: convert open * feat: convert recipes * feat: convert serve * feat: convert sites:create * feat: convert sites:create-template * feat: convert sites:list * feat: convert sites:delete * feat: convert status * feat: convert switch * feat: convert unlink * feat: convert watch * test: fix test for sites:create-template * test: fix tests for logs: * test: sites:create * test: loogs * test: integration * chore: prettier * chore: up timeout for start dev server in test utils * chore: return to original value * chore: try await execa * feat: nope, not that * chore: merge conflict stuff * chore: package lock from main * chore: merge conflict stuff * test: fix test import * test: fix wrong import * chore: revert dev because dev server tests are timing out, moving to another issue * chore: missing things
- Loading branch information
1 parent
5eb2133
commit 5c61169
Showing
83 changed files
with
1,465 additions
and
1,936 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
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 |
---|---|---|
@@ -1 +1,20 @@ | ||
export { createApiCommand } from './api.js' | ||
import { chalk } from '../../utils/command-helpers.js' | ||
import BaseCommand from '../base-command.js' | ||
|
||
export const createApiCommand = (program: BaseCommand) => | ||
program | ||
.command('api') | ||
.argument('[apiMethod]', 'Open API method to run') | ||
.description( | ||
`Run any Netlify API method | ||
For more information on available methods checkout https://open-api.netlify.com/ or run '${chalk.grey( | ||
'netlify api --list', | ||
)}'`, | ||
) | ||
.option('-d, --data <data>', 'Data to use') | ||
.option('--list', 'List out available API methods', false) | ||
.addExamples(['netlify api --list', `netlify api getSite --data '{ "site_id": "123456" }'`]) | ||
.action(async (apiMethod, options, command) => { | ||
const { apiCommand } = await import('./api.js') | ||
await apiCommand(apiMethod, options, command) | ||
}) |
Oops, something went wrong.
5c61169
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📊 Benchmark results
5c61169
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📊 Benchmark results