Browse Source

lazygit

main
Gregory Leeman 6 months ago
parent
commit
ba07f9f396
  1. 8
      wf/script.py

8
wf/script.py

@ -556,6 +556,7 @@ def show(parent_id, flat=False, filters=None, color="grey", follow_mirrors=False
console.print(f"\n[base3][bold]{project_data['name']}[/][/]")
if project_data.get("description") and show_description:
console.print(f"[base01]{project_data['description']}[/]")
console.print("")
print_pretty(project_data, color=color, show_description=show_description, show_id=show_id)
console.print("")
return True
@ -573,6 +574,7 @@ def dump(): # {{{
def main(): # {{{
import argparse
parser = argparse.ArgumentParser(description="Workdlowy CLI")
parser.add_argument("--refresh", action="store_true", help="Refresh session cookie and Workflowy data")
subparsers = parser.add_subparsers(dest="command", required=True)
@ -581,6 +583,10 @@ def main(): # {{{
tasks_parser = subparsers.add_parser("tasks", help="Tasks commands")
tasks_parser.add_argument("filter", help="Filter text", nargs="*", default=None)
tasks_parser.add_argument("--hide-comments", action="store_true", help="Do not show comments")
tasks_parser.add_argument("--flat", action="store_true", help="Show flat list")
tasks_parser.add_argument("--hide-headers", action="store_true", help="Hide headers")
tasks_parser.add_argument("--show-id", action="store_true", help="Show item id")
subparsers.add_parser("dump", help="Dump storage")
subparsers.add_parser("refresh", help="Refresh session cookie and Workflowy data")
@ -602,7 +608,7 @@ def main(): # {{{
args = parser.parse_args()
if args.command == "refresh":
if args.command == "refresh" or args.refresh:
refresh_cookie()
refresh_workflowy_data()

Loading…
Cancel
Save