CLI Output Compression for Readable Resource Lists

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Command-line interfaces (CLI) often produce textual output in a hard-to-read format, with long lists of redundant information that can be time-consuming for users to sift through, and data may scroll off the screen before it can be examined.

Innovation Solution

A method and system that compresses CLI output by representing resources with identical attributes as a single tuple, optionally including a count of resources, to present information in a more concise and user-friendly format, allowing users to quickly analyze large amounts of data in a small area.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If CLI output is presented in detailed list format, then information completeness is improved, but readability and user-friendliness deteriorate

Engineering Contradiction:
Improveinformation completenessVSAvoidreadability
Core Design Contradiction:
Loss of informationVSEase of operation

Solution Approach 1:

The patent merges multiple identical resource entries into a single consolidated tuple that represents all resources with identical attributes. Instead of listing each resource individually, the system combines them and represents them as one entry with aggregated information, thereby reducing redundancy while preserving complete information about all resources.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent changes the parameter representation by introducing a count parameter that indicates how many resources are represented by each tuple. This parameter transformation allows the system to convey information about multiple resources through a single entry, improving readability while maintaining information completeness.

Inventive Principle:
Principle #35Parameter changes

2Loss of information

If complete resource lists are displayed, then data completeness is improved, but screen space efficiency deteriorates

Engineering Contradiction:
Improvedata completenessVSAvoidscreen space
Core Design Contradiction:
Loss of informationVSArea of stationary object

Solution Approach 1:

The patent merges multiple resource entries into single consolidated tuples, dramatically reducing the number of lines required to display complete resource information. This merging approach allows all resource data to be presented in a compact format that fits within limited screen space.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent adds a new dimensional aspect to the display by including a count parameter that represents the quantity of resources in each tuple. This additional dimension allows the system to convey information about multiple resources without proportionally increasing the display area.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Measurement precision

If detailed resource information is presented, then information accuracy is improved, but time to analyze data deteriorates

Engineering Contradiction:
Improveinformation accuracyVSAvoiddata analysis time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent merges identical resource entries into single tuples, allowing users to quickly scan consolidated information rather than sift through repetitive individual entries. This merging maintains complete and accurate information while significantly reducing the time required to analyze and understand the data.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS11556542B2Optionally compressed output from command-line interface
Publication Date: 2023.01.17 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11556542B2 patent drawing
  • US11556542B2 patent drawing
  • US11556542B2 patent drawing

AI summary

A method for presenting output returned by a command-line interface is disclosed. In one embodiment, such a method submits, by way of a command-line interface (CLI), a command to retrieve a list of resources. The method further submits, in association with the command, an indicator to compress the list. In response to receiving the command and indicator, the method retrieves the list of resources and compresses the list such that resources with identical attributes are presented as a single tuple in the list. Such a tuple may, in certain embodiments, identify the resources with identical attributes as a range of resources and/or as a comma delimited list of resources. The tuple may also, in certain embodiments, identify how many resources with identical attributes are represented by the tuple. A corresponding system and computer program product are also disclosed.