MCPcopy Create free account
hub / github.com/Tatamo/atcoder-cli / getTemplateList

Function getTemplateList

src/commands.ts:449–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447}
448
449export async function getTemplateList() {
450 console.error(SGR(`search template directories in ${await getConfigDirectory()}`, 37));
451 const templates = await getTemplates();
452 console.log(formatAsShellOutput([[SGR("NAME", 1), "SUBMIT-PROGRAM"]].concat(templates.map(template => [SGR(template.name, 1), template.task.submit]))));
453}
454
455/**
456 * 文字列の2次元配列を受け取り、行ごとにいい感じのスペースで結合して返す

Callers

nothing calls this directly

Calls 4

getConfigDirectoryFunction · 0.90
getTemplatesFunction · 0.90
SGRFunction · 0.85
formatAsShellOutputFunction · 0.85

Tested by

no test coverage detected