MCPcopy Create free account
hub / github.com/npkgz/cli-progress / remove

Method remove

lib/multi-bar.js:90–110  ·  view source on GitHub ↗
(bar)

Source from the content-addressed store, hash-verified

88
89 // remove a bar from the stack
90 remove(bar){
91 // find element
92 const index = this.bars.indexOf(bar);
93
94 // element found ?
95 if (index < 0){
96 return false;
97 }
98
99 // remove element
100 this.bars.splice(index, 1);
101
102 // force update
103 this.update();
104
105 // clear bottom
106 this.terminal.newline();
107 this.terminal.clearBottom();
108
109 return true;
110 }
111
112 // internal update routine
113 update(){

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
newlineMethod · 0.80
clearBottomMethod · 0.80

Tested by

no test coverage detected