s2terminal/i-read-u

View on GitHub
src/classes/command.ts

Summary

Maintainability
A
0 mins
Test Coverage
export class Command {
  public constructor(private readonly rawString: string) {}

  public render(): string {
    return ` ${this.executable()}`;
  }

  public executable(): string {
    return this.rawString.replace(/^[#>\s$]*/, "");
  }
}