Commit Graph
10 Commits
Author SHA1 Message Date
Anton Miniailo cbdec15d05 Fix panic when printing ascii table while running in debugger (#19930)
When running in debugger width was returning as 0, even though there was no error.
This resulted in panic further down the code, because column maxCellLength
ended up to be negative.
2023-01-05 23:02:51 +00:00
Noah StrideandHåkon Solbjørg 39f4bc3c77 PR Buddy 16673 - fix(asciitable): Default maxCellLength to 0 if negative (#17777)
* fix(asciitable): Default maxCellLength to 0 if negative

* Run Goimports on modified file

Co-authored-by: Håkon Solbjørg <hakon@solbj.org>
2022-10-25 14:45:26 +01:00
Alex McGrath 40200e8536 Reslove comments, move all occurences of teleport.dev to use a constant 2022-03-15 13:22:45 +00:00
Alex McGrath b6df9a742a Add verbosity to tctl * ls commands and resource get. 2022-03-15 13:22:45 +00:00
Alex McGrath ad41b3c154 Move 'MakeTableWithTruncatedColumn' to asciitable and truncate labels 2022-03-15 13:22:45 +00:00
Andrej Tokarčík 46aa81b1ce Fix CLI content spoofing through access request reason 2021-03-01 22:14:10 +01:00
Acrimon cb701c4743 Refactor lib/asciitable, lib/tlsca, lib/shell, lib/session and lib/config tests to not use gocheck 2021-02-23 18:30:06 +01:00
Andrew Lytvynov 5ca68f2351 Remove 'var _ = fmt.Printf' from *_test.go files (#5438)
These declarations serve no purpose, likely leftover from old debugging.
2021-01-29 17:01:10 -08:00
Russell Jones d98b74d2a6 Updated "tctl tokens ..." command. 2018-09-04 10:16:29 -07:00
Ev Kontsevoy 0cc39838ae Removed 'goterm' dependency
goterm had no license, I quickly replaced it with our own little table
formatter.

also rewrote some tsh commands, that were using home-made formatting, to
the new table, so the output is now much nicer.
2017-09-06 19:06:48 -07:00