Skip to main content
Glama
push-based

Angular Toolkit MCP

by push-based
format-command-log.ts796 B
import ansis from 'ansis'; import path from 'node:path'; /** * Formats a command string with optional cwd prefix and ANSI colors. * * @param {string} command - The command to execute. * @param {string[]} args - Array of command arguments. * @param {string} [cwd] - Optional current working directory for the command. * @returns {string} - ANSI-colored formatted command string. */ export function formatCommandLog( command: string, args: string[] = [], cwd: string = process.cwd(), ): string { const relativeDir = path.relative(process.cwd(), cwd); return [ ...(relativeDir && relativeDir !== '.' ? [ansis.italic(ansis.gray(relativeDir))] : []), ansis.yellow('$'), ansis.gray(command), ansis.gray(args.map((arg) => arg).join(' ')), ].join(' '); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/push-based/angular-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server