Skip to content

Commit

Permalink
feat: support for billable
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Dec 7, 2020
1 parent 1143639 commit 2cf0861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ deploy:
repo: AuHau/toggl-cli
python: 3.7
- provider: releases
api_key: ${GH_TOKEN}
api_key: ${GH_TOKEN} # This is not available because the GH_TOKEN is scoped to master which deploys triggered by tag name is not set to the branch name but tag name
on:
tags: true
repo: AuHau/toggl-cli
Expand Down
3 changes: 2 additions & 1 deletion toggl/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import pendulum
from prettytable import PrettyTable
from notifypy import Notify

from toggl import api, exceptions, utils, __version__
from toggl.cli import helpers, types
Expand Down Expand Up @@ -142,6 +141,7 @@ def visit_www():
@click.argument('start', type=types.DateTimeType(allow_now=True))
@click.argument('stop', type=types.DateTimeDurationType())
@click.argument('descr')
@click.option('--billable', '-b', is_flag=True, help="Sets the Entry to be Billable")
@click.option('--tags', '-a', type=types.SetType(), help='List of tags delimited with \',\'')
@click.option('--project', '-o', envvar="TOGGL_PROJECT", type=types.ResourceType(api.Project),
help='Link the entry with specific project. Can be ID or name of the project (ENV: TOGGL_PROJECT)', )
Expand Down Expand Up @@ -424,6 +424,7 @@ def entry_rm(ctx, spec):
@click.argument('descr', required=False)
@click.option('--start', '-s', type=types.DateTimeType(allow_now=True), help='Specifies start of the time entry. '
'If left empty \'now\' is assumed.')
@click.option('--billable', '-b', is_flag=True, help="Sets the Entry to be Billable")
@click.option('--tags', '-a', type=types.SetType(), help='List of tags delimited with \',\'')
@click.option('--project', '-o', envvar="TOGGL_PROJECT", type=types.ResourceType(api.Project),
help='Link the entry with specific project. Can be ID or name of the project (ENV: TOGGL_PROJECT)', )
Expand Down

0 comments on commit 2cf0861

Please sign in to comment.