Skip to content

use more narrow output#6

Merged
jftuga merged 1 commit into
masterfrom
narrow-output
Mar 30, 2025
Merged

use more narrow output#6
jftuga merged 1 commit into
masterfrom
narrow-output

Conversation

@jftuga

@jftuga jftuga commented Mar 30, 2025

Copy link
Copy Markdown
Owner

Purpose

By default, the output it more narrow. The old behavior can be invoked by using the newly added -1 switch.

New Output

$ ipinfo 8.8.8.8 1.1.1.1
+----------+--------------------------+---------------------+-----------+---------+
| INPUT/IP |       HOSTNAME/ORG       | CITY/REGION/COUNTRY |  LAT/LON  |  DIST   |
+----------+--------------------------+---------------------+-----------+---------+
| 1.1.1.1  | one.one.one.one          | Brisbane            |  -27.4820 | 9106.50 |
| 1.1.1.1  | AS13335 Cloudflare, Inc. | Queensland          |  153.0136 |         |
|          |                          | AU                  |           |         |
| 8.8.8.8  | dns.google               | Mountain View       |   38.0088 | 2168.73 |
| 8.8.8.8  | AS15169 Google LLC       | California          | -122.1175 |         |
|          |                          | US                  |           |         |
+----------+--------------------------+---------------------+-----------+---------+

Original Output

$ ipinfo -1 8.8.8.8 1.1.1.1
+---------+---------+-----------------+--------------------------+---------------+------------+---------+-------------------+---------+
|  INPUT  |   IP    |    HOSTNAME     |           ORG            |     CITY      |   REGION   | COUNTRY |      LAT/LON      |  DIST   |
+---------+---------+-----------------+--------------------------+---------------+------------+---------+-------------------+---------+
| 1.1.1.1 | 1.1.1.1 | one.one.one.one | AS13335 Cloudflare, Inc. | Brisbane      | Queensland | AU      | -27.4820,153.0136 | 9106.50 |
| 8.8.8.8 | 8.8.8.8 | dns.google      | AS15169 Google LLC       | Mountain View | California | US      | 38.0088,-122.1175 | 2168.73 |
+---------+---------+-----------------+--------------------------+---------------+------------+---------+-------------------+---------+

@jftuga jftuga merged commit 4090d42 into master Mar 30, 2025
@jftuga jftuga deleted the narrow-output branch March 30, 2025 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant