Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using the line output format, whitespace is added to the end of each column to match the longest column #332

Closed
dboeke opened this issue Mar 25, 2021 · 0 comments · Fixed by #335
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dboeke
Copy link
Contributor

dboeke commented Mar 25, 2021

Describe the bug
When using the line style for output rendering, the column data should not be right padded. If one column is very wide, it causes all columns to have extraneous whitespace that causes wrapping:

Steampipe version (steampipe -v)
v0.3.3

To reproduce
select * from shodan_host_service where ip = '3.239.46.31'

Expected behavior

-[ RECORD 1  ]---------------------------------------------------------------------------
ip          | 3.239.46.31
ipv6        | <null>
port        | 22
timestamp   | 2021-03-24 16:12:17
hash        | 163854181
domains     | ["amazonaws.com"]
banners     | ["SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.2","Key type: ssh-rsa","Key: 
AAAAB3NzaC1yc2EAAAADAQABAAABgQDK7F87Ax0V/oZ0z7mC4hhM0YbcQanSO2++xnPWvCGMxanb","k+FYFio+7H3jIYT
qV63cDzaWaPIGMSAGitN/1qylBqLEViSHIa/fmARCxqjtrJDboM0SznSKHpxm","Y2kAadEtwhMi8ULhxkoOTebNMjgjMgFkuNU
aXaIeT4vctRH1Bz8LDUktImMVWAYgs99yqsv0tj0C","MD084qb+sLHswaxRoS3djIFuUIDYiHA+fiX1zGmikjJyiVxL9XydW7qWh
nLYRt7DxyodYkF+6Y1i","4qxVYT7mPT2DVyB3kZ3El/tE24F7KhTy6lSm/O6WuguYWc4hUo1OEFoNNCZHJNmySwmeJfsqNe
OU","65Jqg5G6UmZDkKGtyPz7H6KgcS0PSzjFiqbceEB7taJFQUa3xUVp3W62Nf5aOiyTXFNJtwtLmnXA","A1r+X9Aj1PmEZ5
Azdj07cq+xfjzslGyM/byPDS4H3Bxklv1mBllO3YFVeWedLAmiko1MfjvuDc3c","Sjr5Oa3haW8=","Fingerprint: 
e2:6c:1c:09:1f:9f:79:43:7c:22:aa:23:76:c0:c2:b3","Kex Algorithms:","\tcurve25519-sha256","\tcurve25519-
sha256@libssh.org","\tecdh-sha2-nistp256","\tecdh-sha2-nistp384","\tecdh-sha2-nistp521","\tdiffie-hellman-group-
exchange-sha256","\tdiffie-hellman-group16-sha512","\tdiffie-hellman-group18-sha512","\tdiffie-hellman-group14-
sha256","Server Host Key Algorithms:","\trsa-sha2-512","\trsa-sha2-256","\tssh-rsa","\tecdsa-sha2-nistp256","\tssh-
ed25519","Encryption Algorithms:","\tchacha20-poly1305@openssh.com","\taes128-ctr","\taes192-ctr","\taes256-
ctr","\taes128-gcm@openssh.com","\taes256-gcm@openssh.com","MAC Algorithms:","\tumac-64-
etm@openssh.com","\tumac-128-etm@openssh.com","\thmac-sha2-256-etm@openssh.com","\thmac-sha2-512-
etm@openssh.com","\thmac-sha1-etm@openssh.com","\tumac-64@openssh.com","\tumac-128@openssh.com","\thmac-
sha2-256","\thmac-sha2-512","\thmac-sha1","Compression Algorithms:","\tnone","\tzlib@openssh.com"]
ssl         | <null>

Actual behavior

-[ RECORD 1  ]---------------------------------------------------------------------------
ip          | 3.239.46.31






ipv6        | <null>






port        | 22






timestamp   | 2021-03-24 16:12:17







hash        | 163854181







domains     | ["amazonaws.com"]
banners     | ["SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.2","Key type: ssh-rsa","Key: 
AAAAB3NzaC1yc2EAAAADAQABAAABgQDK7F87Ax0V/oZ0z7mC4hhM0YbcQanSO2++xnPWvCGMxanb","k+FYFio+7H3jIYT
qV63cDzaWaPIGMSAGitN/1qylBqLEViSHIa/fmARCxqjtrJDboM0SznSKHpxm","Y2kAadEtwhMi8ULhxkoOTebNMjgjMgFkuNU
aXaIeT4vctRH1Bz8LDUktImMVWAYgs99yqsv0tj0C","MD084qb+sLHswaxRoS3djIFuUIDYiHA+fiX1zGmikjJyiVxL9XydW7qWh
nLYRt7DxyodYkF+6Y1i","4qxVYT7mPT2DVyB3kZ3El/tE24F7KhTy6lSm/O6WuguYWc4hUo1OEFoNNCZHJNmySwmeJfsqNe
OU","65Jqg5G6UmZDkKGtyPz7H6KgcS0PSzjFiqbceEB7taJFQUa3xUVp3W62Nf5aOiyTXFNJtwtLmnXA","A1r+X9Aj1PmEZ5
Azdj07cq+xfjzslGyM/byPDS4H3Bxklv1mBllO3YFVeWedLAmiko1MfjvuDc3c","Sjr5Oa3haW8=","Fingerprint: 
e2:6c:1c:09:1f:9f:79:43:7c:22:aa:23:76:c0:c2:b3","Kex Algorithms:","\tcurve25519-sha256","\tcurve25519-
sha256@libssh.org","\tecdh-sha2-nistp256","\tecdh-sha2-nistp384","\tecdh-sha2-nistp521","\tdiffie-hellman-group-
exchange-sha256","\tdiffie-hellman-group16-sha512","\tdiffie-hellman-group18-sha512","\tdiffie-hellman-group14-
sha256","Server Host Key Algorithms:","\trsa-sha2-512","\trsa-sha2-256","\tssh-rsa","\tecdsa-sha2-nistp256","\tssh-
ed25519","Encryption Algorithms:","\tchacha20-poly1305@openssh.com","\taes128-ctr","\taes192-ctr","\taes256-
ctr","\taes128-gcm@openssh.com","\taes256-gcm@openssh.com","MAC Algorithms:","\tumac-64-
etm@openssh.com","\tumac-128-etm@openssh.com","\thmac-sha2-256-etm@openssh.com","\thmac-sha2-512-
etm@openssh.com","\thmac-sha1-etm@openssh.com","\tumac-64@openssh.com","\tumac-128@openssh.com","\thmac-
sha2-256","\thmac-sha2-512","\thmac-sha1","Compression Algorithms:","\tnone","\tzlib@openssh.com"]
ssl         | <null>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants