UNPKG

@codecovevienna/gittt-cli

Version:

Tracking time with CLI into a git repository

50 lines (49 loc) 1.96 kB
import { IProject } from "../interfaces"; export { ConfigHelper } from "./config"; export { GitHelper } from "./git"; export { LogHelper } from "./log"; export { FileHelper } from "./file"; export { ProjectHelper } from "./project"; export { TimerHelper } from "./timer"; export { QuestionHelper } from "./question"; export { ImportHelper } from "./import"; export { ExportHelper } from "./export"; export { ValidationHelper } from "./validation"; export { RecordHelper } from "./record"; export { ChartHelper } from "./chart"; export { AuthHelper } from "./auth"; export { MultipieHelper } from "./multipie"; export declare function parseProjectNameFromGitUrl(input: string): IProject; /** * Extracts ticket number from commit message * * The commit message has to look something like this: Implemented awesome feature (#1337) * Which would return 1337 * * White spaces between the # an the ticket number are supported, but # is mandatory * e.g. Implemented awesome feature (# 1337) * * @param {string} branch * @returns {string} ticket number */ export declare function findTicketNumberInMessage(msg: string): string | undefined; /** * Extracts ticket number from branch * * The branch has to look something like this: 1337-awesome-feature * Which would return 1337 * * @param {string} branch * @returns {string} ticket number */ export declare function findTicketNumberInBranch(branch: string): string | undefined; export declare function appendTicketNumber(initialMessage: string, branchName: string | undefined): Promise<string>; /** * Truncates and extends a given string to a given length * * @param text which should be return to a fixed length * @param length of the string * @param dots how many '.' should be added to the end of the string when text length is longer than length * @returns fixed length string */ export declare function toFixedLength(text: string | undefined, length: number, dots?: number): string;