diff --git a/.travis.yml b/.travis.yml index 8f8af90..12c20df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/toggl/cli/commands.py b/toggl/cli/commands.py index a11cbc3..07f0499 100644 --- a/toggl/cli/commands.py +++ b/toggl/cli/commands.py @@ -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 @@ -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)', ) @@ -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)', )