MCPcopy
hub / github.com/virattt/dexter / constructor

Method constructor

src/components/user-query.ts:7–13  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

5 private readonly body: Text;
6
7 constructor(query: string) {
8 super();
9 this.addChild(new Spacer(1));
10 this.body = new Text('', 0, 0);
11 this.addChild(this.body);
12 this.setQuery(query);
13 }
14
15 setQuery(query: string) {
16 this.body.setText(`${theme.queryBg(theme.white(`❯ ${query} `))}`);

Callers

nothing calls this directly

Calls 1

setQueryMethod · 0.95

Tested by

no test coverage detected