Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: f3rno64/track-time-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.43.1
Choose a base ref
...
head repository: f3rno64/track-time-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.43.2
Choose a head ref
  • 3 commits
  • 8 files changed
  • 1 contributor

Commits on Feb 20, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c1afacc View commit details
  2. Copy the full SHA
    471f3ff View commit details
  3. chore(release): 1.43.2

    f3rno64 committed Feb 20, 2024
    Copy the full SHA
    d126ee2 View commit details
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.43.2](https://github.com/f3rno64/track-time-cli/compare/v1.43.1...v1.43.2) (2024-02-20)

### [1.43.1](https://github.com/f3rno64/track-time-cli/compare/v1.43.0...v1.43.1) (2024-02-20)

## [1.43.0](https://github.com/f3rno64/track-time-cli/compare/v1.42.1...v1.43.0) (2024-02-19)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "track-time-cli",
"version": "1.43.1",
"version": "1.43.2",
"description": "A CLI utility for tracking tasks in time sheets, inspired by timetrap.",
"keywords": [
"time",
4 changes: 2 additions & 2 deletions src/commands/today/const.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
setup,
AgoOption,
HelpOption,
SheetsOption,
AbsoluteOption,
HumanizeOption,
AllSheetsOption
} from '../../options'
@@ -13,7 +13,7 @@ export const CONFIG = {
describe: 'Display a summary of activity for today',
builder: setup.bind(null, [
SheetsOption,
AgoOption,
AbsoluteOption,
HumanizeOption,
AllSheetsOption,
HelpOption
4 changes: 2 additions & 2 deletions src/commands/today/handler.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import { printSheets, printSummary } from '../../print'
import { getSheetsWithEntriesSinceDate } from '../../utils'

const handler = (args: TodayCommandArgs): void => {
const { ago, all, db, help, humanize, sheets: inputSheets, yargs } = args
const { absolute, all, db, help, humanize, sheets: inputSheets, yargs } = args

if (help) {
yargs.showHelp()
@@ -31,7 +31,7 @@ const handler = (args: TodayCommandArgs): void => {

printSummary(sheetsWithEntriesForToday, humanize)
log('')
printSheets(sheetsWithEntriesForToday, ago, humanize)
printSheets(sheetsWithEntriesForToday, absolute !== true, humanize)
}

export default handler
2 changes: 1 addition & 1 deletion src/commands/today/types.ts
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@ import DB from '../../db'
export interface TodayCommandArgs {
db: DB
yargs: Argv
ago?: boolean
all?: boolean
help?: boolean
sheets?: string[]
absolute?: boolean
humanize?: boolean
}
4 changes: 2 additions & 2 deletions src/commands/yesterday/const.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
setup,
AgoOption,
HelpOption,
SheetsOption,
AbsoluteOption,
HumanizeOption,
AllSheetsOption
} from '../../options'
@@ -13,7 +13,7 @@ export const CONFIG = {
describe: 'Display a summary of activity for yesterday',
builder: setup.bind(null, [
SheetsOption,
AgoOption,
AbsoluteOption,
HumanizeOption,
AllSheetsOption,
HelpOption
6 changes: 2 additions & 4 deletions src/commands/yesterday/handler.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import { printSheets, printSummary } from '../../print'
import { filterSheetEntriesForDate } from '../../sheets'

const handler = (args: YesterdayCommandArgs) => {
const { ago, all, db, help, humanize, sheets: inputSheets, yargs } = args
const { all, db, help, humanize, absolute, sheets: inputSheets, yargs } = args

if (help) {
yargs.showHelp()
@@ -17,8 +17,6 @@ const handler = (args: YesterdayCommandArgs) => {

if (!_isUndefined(inputSheets) && all) {
throw new Error('Cannot specify both --all and sheets')
} else if (_isUndefined(inputSheets) && !all) {
throw new Error('Must specify either --all or sheets')
}

const sheets =
@@ -38,7 +36,7 @@ const handler = (args: YesterdayCommandArgs) => {

printSummary(sheetsWithEntriesForYesterday, humanize)
log('')
printSheets(sheetsWithEntriesForYesterday, ago, humanize)
printSheets(sheetsWithEntriesForYesterday, absolute !== true, humanize)
}

export default handler
2 changes: 1 addition & 1 deletion src/commands/yesterday/types.ts
Original file line number Diff line number Diff line change
@@ -5,9 +5,9 @@ import DB from '../../db'
export interface YesterdayCommandArgs {
db: DB
yargs: Argv
ago?: boolean
all?: boolean
help?: boolean
sheets?: string[]
absolute?: boolean
humanize?: boolean
}