Commit 81e3889
committed
perf: skip network ops for lightweight commands (version, help)
PersistentPreRunE was running AutoUpgrade + RefreshPackagesFromRemote
for every command including 'openboot version'. Both make network
requests, causing noticeable lag for commands that don't need them.
Skip both for 'version' and 'help' commands.1 parent 7457ff1 commit 81e3889
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
0 commit comments