File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1919from glances .outputs .glances_curses import GlancesCursesClient
2020from glances .outputs .glances_stdout import GlancesStdout
2121from glances .outputs .glances_stdout_csv import GlancesStdoutCsv
22+ from glances .outputs .glances_stdout_fetch import GlancesStdoutFetch
2223from glances .outputs .glances_stdout_json import GlancesStdoutJson
2324from glances .stats_client import GlancesStatsClient
2425from glances .timer import Counter
@@ -187,6 +188,9 @@ def login(self):
187188 logger .info (f"Stdout CSV mode is ON, following stats will be displayed: { self .args .stdout_csv } " )
188189 # Init screen
189190 self .screen = GlancesStdoutCsv (config = self .config , args = self .args )
191+ elif self .args .stdout_fetch :
192+ logger .info ("Fetch mode is ON" )
193+ self .screen = GlancesStdoutFetch (config = self .config , args = self .args )
190194 else :
191195 self .screen = GlancesCursesClient (config = self .config , args = self .args )
192196
You can’t perform that action at this time.
0 commit comments