-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 'toot diag' command that outputs useful diagnostic info
- Loading branch information
1 parent
31501a8
commit ee45ec1
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[flake8] | ||
exclude=build,tests,tmp,venv,toot/tui/scroll.py | ||
exclude=build,tests,tmp,venv,_env,toot/tui/scroll.py | ||
ignore=E128,W503,W504 | ||
max-line-length=120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from toot.output import print_diags | ||
from toot.cli import ( | ||
cli, | ||
pass_context, | ||
Context, | ||
) | ||
|
||
|
||
@cli.command() | ||
@pass_context | ||
def diag(ctx: Context): | ||
"""Display useful information for diagnosing problems""" | ||
|
||
print_diags() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters