-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add --nodeclined support to remind command #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| 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; }; }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
|
||
|
|
||
| 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 ]; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
parsed_args.nodeclinedattribute will not exist because the--nodeclinedflag is not defined in the remind subcommand parser. This will cause an AttributeError at runtime. The--nodeclinedflag needs to be added to the remind subcommand definition in argparsers.py (either directly or by including output_parser as a parent).