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

glorious-codes / glorious-demo / 971b12eb-089e-42e4-89d6-04e2d7329d1c

pending completion
971b12eb-089e-42e4-89d6-04e2d7329d1c

Pull #107

circleci

GitHub
build(deps): bump minimist from 1.2.5 to 1.2.6
Pull Request #107: build(deps): bump minimist from 1.2.5 to 1.2.6

62 of 62 branches covered (100.0%)

Branch coverage included in aggregate %.

273 of 273 relevant lines covered (100.0%)

10.96 hits per line

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

100.0
/src/scripts/components/terminal-command-line/terminal-command-line.js
1
import '@styles/terminal-command-line.styl';
2
import { Cursor } from '../cursor/cursor';
3
import { TerminalLine } from '../terminal-line/terminal-line';
4
import domService from '../../services/dom/dom';
5
import template from './terminal-command-line.html';
6

7
export class TerminalCommandLine extends TerminalLine {
8
  constructor(promptString){
9
    super();
7✔
10
    this.cursor = new Cursor();
7✔
11
    this.setContent(domService.parseHtml(template));
7✔
12
    this.setPromptString(promptString);
7✔
13
    getTextElement(this.element).appendChild(this.cursor.element);
7✔
14
  }
15
  setPromptString(promptString){
16
    const container = this.element.querySelector('[data-terminal-command-line-prompt-string]');
7✔
17
    container.appendChild(domService.parseHtml(promptString));
7✔
18
  }
19
  command(text, onComplete){
20
    this.cursor.write(text, onComplete);
1✔
21
  }
22
  setActive(){
23
    this.cursor.setActive();
1✔
24
  }
25
  setInactive(){
26
    this.cursor.setInactive();
1✔
27
  }
28
}
29

30
function getTextElement(lineElement){
31
  return lineElement.querySelector('[data-terminal-command-line-text]');
7✔
32
}
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

© 2025 Coveralls, Inc