# All files / src/projectTools workspace.js

65.12% Statements 28/43
31.25% Branches 5/16
45.45% Functions 5/11
100% Lines 16/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    352x
    2x
    2x

    2x
    1x

    1x
    3x
    3x

    2x

    2x
    2x

    2x
    2x

    2x
    2x

    3x
     import chalk from 'chalk';
    import { generateOptions } from '../systemTools/prompt';
    import {
        logWelcome, logSummary, configureLogger, logAndSave, logError, logTask,
        logWarning, logDebug, logInfo, logComplete, logSuccess, logEnd,
        logInitialize, logAppInfo, getCurrentCommand, logToSummary
    } from '../systemTools/logger';

    export const rnvWorkspaceList = async (c) => {
        logTask('rnvWorkspaceList');

        const opts = generateOptions(c.files.rnv.configWorkspaces?.workspaces, true, null, (i, obj, mapping, defaultVal) => {
            const isConnected = '';
            return ` [${chalk.grey(i + 1)}]> ${chalk.bold(defaultVal)}${isConnected} \n`;
        });

        logToSummary(`Workspaces:\n\n${opts.asString}`);
    };

    export const rnvWorkspaceAdd = async (c) => {
        logTask('rnvWorkspaceAdd');
    };

    export const rnvWorkspaceConnect = async (c) => {
        logTask('rnvWorkspaceConnect');
    };

    export const rnvWorkspaceUpdate = async (c) => {
        logTask('rnvWorkspaceUpdate');
    };

    export const getWorkspaceOptions = c => generateOptions(c.files.rnv.configWorkspaces?.workspaces, false, null, (i, obj, mapping, defaultVal) => ` [${chalk.grey(i + 1)}]> ${chalk.bold(defaultVal)}\n`);