• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

streetsidesoftware / cspell / 15459585819

05 Jun 2025 05:56AM UTC coverage: 92.302% (-0.05%) from 92.355%
15459585819

push

github

web-flow
fix: Add init options (#7436)

12873 of 15208 branches covered (84.65%)

18 of 28 new or added lines in 5 files covered. (64.29%)

15839 of 17160 relevant lines covered (92.3%)

30051.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/cspell/src/app/commandConfig.ts
1
import type { Command } from 'commander';
2

3
import { collect, crOpt } from './commandHelpers.js';
4
import { UpdateConfigOptions } from './config/options.js';
5
import { updateConfig } from './config/updateConfig.js';
6

7
export function commandInit(prog: Command): Command {
NEW
8
    const command = prog
×
9
        .command('config')
10
        .description('Update a CSpell configuration file.')
11
        .option('-c, --config <path>', 'Path to the CSpell configuration file.')
12
        .option('--import <path|package>', 'Import a configuration file or dictionary package.', collect)
13
        .option('--locale <locale>', 'Define the locale to use when spell checking (e.g., en, en-US, de).')
14
        .addOption(crOpt('--dictionary <dictionary>', 'Enable a dictionary.', collect).default(undefined))
15
        .addOption(crOpt('--comments', 'Add comments to the config file.').default(undefined).hideHelp())
16
        .option('--no-comments', 'Do not add comments to the config file.')
17
        .action((options: UpdateConfigOptions) => {
NEW
18
            return updateConfig(options);
×
19
        });
20

NEW
21
    return command;
×
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc