refactor: simplified CLI options
This commit is contained in:
@@ -26,7 +26,6 @@ import {
|
||||
import {
|
||||
handlePluginRestore,
|
||||
handlePluginCheck,
|
||||
handlePluginUpdate,
|
||||
handlePluginResolve,
|
||||
} from "./plugin-git-handlers.js"
|
||||
import {
|
||||
@@ -682,16 +681,6 @@ export async function handleUpgrade(argv) {
|
||||
console.log(styleText("green", "Done!"))
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles `npx quartz update`
|
||||
* Shortcut for `npx quartz plugin update` — updates all installed plugins.
|
||||
* @param {*} argv arguments for `update`
|
||||
*/
|
||||
export async function handleUpdate(argv) {
|
||||
console.log(`\n${styleText(["bgGreen", "black"], ` Quartz v${version} `)} \n`)
|
||||
await handlePluginUpdate(argv.names)
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles `npx quartz restore`
|
||||
* @param {*} argv arguments for `restore`
|
||||
|
||||
+576
-464
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user