Repository navigation
Standardize the Spence guide and next commands - #1
Conversation
[Medium impact] The changes reach users of the Spence CLI and their local project workflow. Fix FindingsSummaryAdds
Reviews (1) · Last reviewed commit: "Use the native guide and project next co..." · Reviewed by Greptile |
| elif not store.list("application"): | ||
| command = "spence applications list" | ||
| else: | ||
| command = "spence reviews list" |
There was a problem hiding this comment.
After a user imports a role and post and creates an opening, spence next suggests spence applications list, even when no form or publication exists. That command returns an empty list without advancing setup, so next keeps suggesting it. Once applications exist, the same problem occurs with spence reviews list when reviews have not been prepared.
Check the opening's setup and publication state first, then suggest the missing setup or sync step.
| elif not store.list("opening"): | ||
| command = "spence opening create --help" | ||
| elif not store.list("post"): | ||
| command = "spence post import POST.json" |
There was a problem hiding this comment.
Post suggestion uses wrong format
The suggested spence post import POST.json command reads the whole file as plain text because it omits --mccall-export. A user supplying the documented JSON export will silently store its JSON wrapper as the job post, which later appears in the application form. Suggest POST.md for the default mode, or include --mccall-export for JSON exports.
| command = "spence post import POST.json" | |
| command = "spence post import POST.md" |
Using the package
Run
spence guideafter installation to read the package workflow. Usespence nextto get the next step from the package’s project state. Project location and input options follow this package’s own CLI. Before installation, EDSL can point to the existing documentation.Exposes the installed README and recommends a next action from the local hiring workspace without contacting the configured provider.
Verification
Built a wheel, installed it in a disposable environment, and invoked the guide through the installed console script from a temporary directory. Tested the installed next command against an initialized project.
Directory rollout · EDSL discovery