Conversation
| row.append(rpad(c, counts[i]+2)) | ||
| print("".join(row)) | ||
|
|
||
| def ifconfig(): |
There was a problem hiding this comment.
Let's rename the tome from ifconfig to something less loaded like get_net_info or network_recon
Then in the future if we have other net info like trace route we can include it here as well.
| launch_daemon(service_name, executable_path, executable_url) | ||
| else: | ||
| print("OS not supported\n") | ||
| print("OS not supported") |
|
|
||
| for proc in procs: | ||
| rows = [["PID", "PPID", "USER","COMMAND"]] | ||
| for proc in sorted(procs, key=lambda x:x["pid"]): |
There was a problem hiding this comment.
Sorting by PID? smh - if possible we should sort by spawn time (which i think is the default unsure thogh)
| str(proc['pid']), | ||
| str(proc['ppid']), | ||
| proc['username'], | ||
| current_proc_command.replace("\n","\\n")[:80] # trim absurdly long cmds |
There was a problem hiding this comment.
I'd rather not trim the command - in tavern we don't wrap so it won't look gross.
But if we avoid truncating that's more searchable fields.
Good for situations like REALLY long java commands with a "PASSWORD" arg.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #675 +/- ##
==========================================
+ Coverage 71.76% 72.03% +0.27%
==========================================
Files 175 175
Lines 12111 12219 +108
==========================================
+ Hits 8691 8802 +111
+ Misses 3205 3202 -3
Partials 215 215 ☔ View full report in Codecov by Sentry. |

Remove all excess newlines from tomes
remove redundant tomes (hostname and get_net_info)
clean up table printing on a few tomes