Ben Schlegel
2023-08-27 4b89202f7e834cf8b5c5aa39e8f1778706492085
refs
author Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Sunday, August 27, 2023 22:59 +0000
committer GitHub <noreply@github.com>
Sunday, August 27, 2023 22:59 +0000
commit4b89202f7e834cf8b5c5aa39e8f1778706492085
tree 44d9905202c7d418af20f46ca3da4f4df9669b5f tree | zip | gz
parent 52ca312f41ee6da5202cd9632d8501340ada3a67 view | diff
cleanup: rework cli to allow invoking create and build outside of cli (#428)

* refactor: move `bootstrap-cli.mjs` tp cli

also update reference in docs

* refactor(cli): move build handler to `cli-functions`

* refactor(cli): move create to handler + helpers

* refactor(cli): extract arg definitions

* refactor: rename handlers and helpers

* refactor(cli): move update, await handlers

* refactor(cli): create constants, migrate to helpers

* refactor(cli): migrate `restore`

* refactor(cli): migrate `sync`

* format

* refactor(cli): remove old imports/functions

* refactor(cli): remove unused imports + format

* chore: remove old log statement

* fix: fix imports, clean duplicate code

* fix: relative import

* fix: simplified cacheFile path

* fix: update cacheFile import path

* refactor: move bootstrap-cli to quartz

* format

* revert: revert path to bootstrap-cli

* ci: re-run

* ci: fix execution permission
4 files added
2 files modified
1284 ■■■■ changed files
package-lock.json 1 ●●●● diff | view | raw | blame | history
quartz/bootstrap-cli.mjs 617 ●●●●● diff | view | raw | blame | history
quartz/cli/args.js 88 ●●●●● diff | view | raw | blame | history
quartz/cli/constants.js 15 ●●●●● diff | view | raw | blame | history
quartz/cli/handlers.js 511 ●●●●● diff | view | raw | blame | history
quartz/cli/helpers.js 52 ●●●●● diff | view | raw | blame | history