mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-02-11 00:39:21 +00:00
13 lines
445 B
TypeScript
13 lines
445 B
TypeScript
import { ActionConfig } from "../ActionConfig";
|
|
import { UserInfo } from "../providers/UserInfo";
|
|
import { UserFormatter } from "./UserFormatter";
|
|
|
|
export class CsvUserFormatter implements UserFormatter {
|
|
constructor(config: ActionConfig) {
|
|
// placeholder for consistency with other formatters
|
|
}
|
|
|
|
public Format(type: string, users: UserInfo[]): string {
|
|
return users.map((user) => `${user.name} <${user.email}>`).join(", ");
|
|
}
|
|
}
|