Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #943 +/- ##
==========================================
- Coverage 79.17% 79.16% -0.01%
==========================================
Files 344 344
Lines 30350 30352 +2
==========================================
Hits 24029 24029
- Misses 6321 6323 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
58a51a2 to
82f4b4b
Compare
dissect/target/tools/shell.py
Outdated
| def do_man(self, line: str) -> bool: | ||
| """alias for help""" | ||
| self.do_help(line) | ||
| return True |
There was a problem hiding this comment.
I believe it should return False. If a do_ or cmd_ function returns True it is a sign the Cli should exit.
There was a problem hiding this comment.
aah, TIL. Will change it
There was a problem hiding this comment.
Kind of counter intuitive if you ask me, but that's how it works 😅. Perhaps it is inspired by 0 and 1 exit codes.
There was a problem hiding this comment.
Yeah, it definitely feels counterintuitive. I guess its the exit code thing to make it feel like a shell where a non zero value gets treated as an error. Anyway, fixed!
82f4b4b to
b28fc72
Compare
2384f1e to
f70001b
Compare
7d89a00 to
98af1a9
Compare
And some miscellaneous fixes of typing and consistency
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
98af1a9 to
2a93fe1
Compare
There was an issue with the
TargetCmdin the case the prompt was defined in the config file, yet didn't contain{cmd}or{base}. This fixes that issueand some fixes for typing consistency