Skip to content

Commit

Permalink
Add rich click
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed Dec 6, 2023
1 parent c2683d2 commit 98af5f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pros/cli/click_classes.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from collections import defaultdict
from typing import *

from rich_click import RichCommand
import click.decorators
from click import ClickException
from pros.conductor.project import Project as p
from pros.common.utils import get_version


class PROSFormatted(click.BaseCommand):
class PROSFormatted(RichCommand):
"""
Common format functions used in the PROS derived classes. Derived classes mix and match which functions are needed
"""
Expand Down
5 changes: 5 additions & 0 deletions pros/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pros.common.sentry

import click
import ctypes
import sys

import pros.common.ui as ui
Expand All @@ -27,6 +28,10 @@
import pros.cli.interactive
import pros.cli.user_script

if sys.platform == 'win32':
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)

root_sources = [
'build',
'conductor',
Expand Down

0 comments on commit 98af5f1

Please sign in to comment.