Setup Workspace
Summary
Lifecycle
- NOTE: code here is written in Dendron Pseudocode (Private)
- ../packages/plugin-core/src/commands/SetupWorkspace.ts (Private)
execute(opts) {
workspaceInitializer := BlankInitializer
vaults := opts.workspaceInitializer.createVaults ?? []
createWorkspace(vaults)
// execute wsInitializaer if there is one
opts?.workspaceInitializer?.onWorkspaceCreation?(vaults)
%reload%
}
Reference
BlankInitializer
createVaults {
vaultPath = vault?.fsPath || "vault"
return {fsPath:: vaultPath}
}
Cook
Past Tasks
Backlinks