Setup Workspace

Summary

Lifecycle

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