[Git][NTPsec/ntpsec][master] ntpq: Address #792 by adding empty line between command outputs.

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Tue Jul 4 22:25:40 UTC 2023



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
f9313775 by Vagrant at 2023-07-04T08:02:56-07:00
ntpq: Address #792 by adding empty line between command outputs.

- - - - -


1 changed file:

- ntpclients/ntpq.py


Changes:

=====================================
ntpclients/ntpq.py
=====================================
@@ -1878,9 +1878,13 @@ if __name__ == '__main__':
             session.openhost(*interpreter.chosts[0])
             interpreter.cmdloop()
         else:
+            latter = False
             for ihost in interpreter.chosts:
                 if session.openhost(*ihost):
                     for command in interpreter.ccmds:
+                        if latter:
+                            print()
+                        latter = True
                         interpreter.onecmd(interpreter.precmd(command))
                     session.close()
         raise SystemExit(0)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/f93137759ee5fc9925cf0ec51fba4b0773a69e34

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/f93137759ee5fc9925cf0ec51fba4b0773a69e34
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20230704/4de6dbd7/attachment.htm>


More information about the vc mailing list