Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymwells committed May 3, 2023
1 parent ba56dbb commit 856e148
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/lib/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ const parsedArgv: RawArgs = yargs(hideBin(global.process.argv)).argv as RawArgs;
// set a default chart config instance from cli options
parsedArgv.chart = new ChartConfig(parsedArgv.chart);

export const argv = parsedArgv as Args;
export const argv = parsedArgv as Args;
9 changes: 4 additions & 5 deletions packages/cli/src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { TrackerChart } from './tracker-chart';

const DATE_FORMAT = 'yyyy-MM-dd-HH-mm-ss-SSS';


/**
*
*
Expand All @@ -30,6 +29,10 @@ function getDataFilePath(
return resolve(join(localRootDir, outputDir, 'data.json'));
}

function getGitDate(date: string): Date {
return new Date(+date * 1000);
}

function getLastCommitAsPromise(): Promise<Commit> {
return new Promise((resolve, reject) => {
getLastCommit((err, commit) => {
Expand All @@ -41,10 +44,6 @@ function getLastCommitAsPromise(): Promise<Commit> {
});
}

function getGitDate(date: string): Date {
return new Date(+date * 1000);
}

/**
*
*
Expand Down

0 comments on commit 856e148

Please sign in to comment.