Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
description = "gcalcli";
inputs = { nixpkgs = { url = "nixpkgs/nixos-22.05"; }; };
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in { devShells.${system}.default = import ./shell.nix { inherit pkgs; }; };
}
2 changes: 1 addition & 1 deletion gcalcli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def main():
elif parsed_args.command == 'remind':
gcal.Remind(
parsed_args.minutes, parsed_args.cmd,
use_reminders=parsed_args.use_reminders
parsed_args.nodeclined, use_reminders=parsed_args.use_reminders
)

elif parsed_args.command == 'import':
Expand Down
2 changes: 1 addition & 1 deletion gcalcli/gcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ def ModifyEvents(self, work, search_text, start=None, end=None,
return self._iterate_events(
self.now, event_list, year_date=True, work=work)

def Remind(self, minutes, command, use_reminders=False):
def Remind(self, minutes, command, nodeclined, use_reminders=False):
"""
Check for events between now and now+minutes.

Expand Down
6 changes: 6 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{ pkgs ? import <nixpkgs> { } }:

let
python38WithPackages =
(pkgs.python38.withPackages (pythonPackages: with pythonPackages; [ tox ]));
in pkgs.mkShell { buildInputs = [ python38WithPackages ]; }