shellhistory
¤
Shell History package.
Visualize your usage of Bash/Zsh through a web app thanks to Flask and Highcharts!
Functions:
-
get_parser–Return the CLI argument parser.
-
import_legacy–Import a legacy text history file into the database.
-
location–Print the path of the shell script to source.
-
main–Run the main program.
-
migrate–Convert a legacy single-table database to the sessions + history split.
-
web–Run the web application.
get_parser
¤
get_parser() -> ArgumentParser
Return the CLI argument parser.
Returns:
-
ArgumentParser–An argparse parser.
Source code in src/shellhistory/_internal/cli.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
import_legacy
¤
Import a legacy text history file into the database.
Parameters:
Returns:
-
int–An exit code.
Source code in src/shellhistory/_internal/cli.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 | |
location
¤
location() -> int
Print the path of the shell script to source.
Returns:
-
int–An exit code.
Source code in src/shellhistory/_internal/cli.py
201 202 203 204 205 206 207 208 | |
main
¤
Run the main program.
This function is executed when you type shellhistory or python -m shellhistory.
Parameters:
Returns:
-
int–An exit code.
Source code in src/shellhistory/_internal/cli.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
migrate
¤
migrate() -> int
Convert a legacy single-table database to the sessions + history split.
Returns:
-
int–An exit code.
Source code in src/shellhistory/_internal/cli.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
web
¤
web() -> int
Run the web application.
Returns:
-
int–An exit code.
Source code in src/shellhistory/_internal/cli.py
211 212 213 214 215 216 217 218 219 220 221 222 | |