Mechanisms are provided for automatic generation of command-line interface (CLI) commands based on a prior CLI output. A CLI command is executed via a CLI to generate a CLI output. The CLI output is processed to identify component(s) of the CLI output. For each component, action(s) are identified to thereby generate a plurality of action metadata. The CLI output is augmented with the identified component(s) corresponding action metadata to thereby generate a second CLI output. The second CLI output is generated and presented in response to a user input to select a component in the second CLI output, user interface (UI) element(s) associated with actions in the action metadata associated with the selected component. In response to a user selecting a UI element, an action corresponding to the user selected UI element is automatically executed.
Legal claims defining the scope of protection, as filed with the USPTO.
executing a first CLI command via a CLI to generate a first CLI output; processing the first CLI output to identify one or more components of the first CLI output; identifying one or more actions for each component in the identified one or more components to generate a plurality of action metadata; augmenting the first CLI output to associate, with the identified one or more components, corresponding action metadata from the plurality of action metadata to thereby generate second CLI output; in response to a user input to select a component in the second CLI output, presenting one or more user interface (UI) elements associated with actions in action metadata associated with the selected component; and in response to a user selecting a UI element from the one or more UI elements, automatically executing an action corresponding to the user selected UI element. . A method in a data processing system for automatic generation of command line interface (CLI) commands based on a prior CLI output, the method comprising:
claim 1 . The method of, wherein identifying the one or more actions further comprises identifying an action template for generating a subsequent CLI command to execute the action, for each action in the one or more actions.
claim 2 automatically generating the subsequent CLI command based on the identified action template; inputting the subsequent CLI command into the CLI; and receiving a new CLI output based on an execution of the subsequent CLI command by the CLI. . The method of, wherein automatically executing the action corresponding to the user selected UI element comprises:
claim 1 determining a component type of the component selected by the user input; determining a context based on previously executed CLI commands including the first CLI command; and correlating the component type and context with an entry in a datastore that stores mappings of contexts, component types, and sets of actions and action templates. . The method of, wherein identifying the one or more actions further comprises:
claim 1 . The method of, further comprising, for each component in the identified one or more components, identifying one or more actions for the component comprises determining a context of the CLI output, wherein different actions are applicable to different contexts.
claim 5 . The method of, wherein the context of the CLI output is the first CLI command by default, and wherein the context may be specified by a user to override the default of the first CLI command.
claim 1 . The method of, wherein the second CLI output comprises, for each component in the second CLI output, corresponding tags that specify actions and action templates associated with the component, and wherein user interface elements are generated from the actions and action templates associated with the component when presenting the second CLI output via the CLI client interface.
claim 7 . The method of, wherein the presentation of the second CLI output comprises a hierarchy of option user interface (UI) elements, action UI elements, and sub-action UI elements which are user selectable.
claim 1 . The method of, wherein the plurality of action metadata comprises a metadata file corresponding to the first CLI output, and wherein the metadata file comprises, for each component in the first CLI output, a component identifier, a component type, a component actions listing, and a command template listing.
claim 1 . The method of, wherein the components comprises one or more of names of files, names of servers, or names of pods in a container orchestration system cluster.
execute a first Command-Line Interface (CLI) command via a CLI to generate a first CLI output; process the first CLI output to identify one or more components of the first CLI output; identify one or more actions for each component in the identified one or more components to generate a plurality of action metadata; augment the first CLI output to associate, with the identified one or more components, corresponding action metadata from the plurality of action metadata to thereby generate second CLI output; present, in response to a user input to select a component in the second CLI output, one or more user interface (UI) elements associated with actions in action metadata associated with the selected component; and automatically execute, in response to a user selecting a UI element from the one or more UI elements, an action corresponding to the user selected UI element. . A computer program product comprising a computer readable storage medium having a computer readable program stored therein, wherein the computer readable program, when executed in a data processing system, causes the data processing system to:
claim 11 . The computer program product of, wherein identifying the one or more actions further comprises identifying an action template for generating a subsequent CLI command to execute the action, for each action in the one or more actions.
claim 12 automatically generating the subsequent CLI command based on the identified action template; inputting the subsequent CLI command into the CLI; and receiving a new CLI output based on an execution of the subsequent CLI command by the CLI. . The computer program product of, wherein the computer readable program further causes the data processing system to automatically execute the action corresponding to the user selected UI element at least by:
claim 11 determining a component type of the component selected by the user input; determining a context based on previously executed CLI commands including the first CLI command; and correlating the component type and context with an entry in a datastore that stores mappings of contexts, component types, and sets of actions and action templates. . The computer program product of, wherein the computer readable program further causes the data processing system to identify the one or more actions at least by:
claim 11 . The computer program product of, wherein, for each component in the identified one or more components, identifying one or more actions for the component comprises determining a context of the CLI output, wherein different actions are applicable to different contexts.
claim 15 . The computer program product of, wherein the context of the CLI output is the first CLI command by default, and wherein the context may be specified by a user to override the default of the first CLI command.
claim 11 . The computer program product of, wherein the second CLI output comprises, for each component in the second CLI output, corresponding tags that specify actions and action templates associated with the component, and wherein user interface elements are generated from the actions and action templates associated with the component when presenting the second CLI output via the CLI client interface.
claim 17 . The computer program product of, wherein the presentation of the second CLI output comprises a hierarchy of option user interface (UI) elements, action UI elements, and sub-action UI elements which are user selectable.
claim 11 . The computer program product of, wherein the plurality of action metadata comprises a metadata file corresponding to the first CLI output, and wherein the metadata file comprises, for each component in the first CLI output, a component identifier, a component type, a component actions listing, and a command template listing.
at least one processor; and at least one memory coupled to the at least one processor, wherein the at least one memory comprises instructions which, when executed by the at least one processor, cause the at least one processor to: execute a first Command-Line Interface (CLI) command via a CLI to generate a first CLI output; process the first CLI output to identify one or more components of the first CLI output; identify one or more actions for each component in the identified one or more components to generate a plurality of action metadata; augment the first CLI output to associate, with the identified one or more components, corresponding action metadata from the plurality of action metadata to thereby generate second CLI output; present, in response to a user input to select a component in the second CLI output, one or more user interface (UI) elements associated with actions in action metadata associated with the selected component; and automatically execute, in response to a user selecting a UI element from the one or more UI elements, an action corresponding to the user selected UI element. . An apparatus comprising:
Complete technical specification and implementation details from the patent document.
The present application relates generally to a data processing apparatus and method and more specifically to a computing tool and computing tool operations and functionality for providing a command-line interface contextual executable actions interface.
A Command-Line Interface (CLI), also known as a command prompt or terminal, is a text-based interface through which users may interact with a computer program, operating system, or the like, by inputting lines of text called command-lines. The CLI responds to such command-lines by returning a text-based feedback from the computing system. CLI commands can perform various functions including system configuration, software installation, file manipulation, and the like.
While CLIs provide powerful tools for interacting with software and operating systems, the CLIs require that users be familiar with the specific commands and syntax of the particular CLI. Different CLIs use different commands and syntax. For example, to navigate to a directory, in a Unix system, one may use the “ls” command to list the directory contents and the “cd” command to change the current directory; while in a Microsoft Windows system, one may need to use the “cd” command to change the directory or list the content of a directory with the “dir” command. One must further know what other parameters and ordering of parameters may be needed for each command. Thus, current CLIs require users to have detailed knowledge of the particular CLIs being utilized.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described herein in the Detailed Description. This Summary is not intended to identify key factors or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In one illustrative embodiment, a method in a data processing system is provided for automatic generation of Command-Line Interface (CLI) commands based on a prior CLI output. The method comprises executing a first CLI command via a CLI to generate a first CLI output and processing the first CLI output to identify one or more components of the first CLI output. The method comprises identifying one or more actions for each component in the identified one or more components to thereby generate a plurality of action metadata. In addition, the method comprises augmenting the first CLI output to associate with the identified one or more components corresponding action metadata from the plurality of action metadata to thereby generate second CLI output. Moreover, the method comprises, in response to a user input to select a component in the second CLI output, presenting one or more User Interface (UI) elements associated with actions in the action metadata associated with the selected component. Furthermore, the method comprises, in response to a user selecting a UI element from the one or more UI elements, automatically executing an action corresponding to the user selected UI element.
In other illustrative embodiments, a computer program product comprising a computer useable or readable medium having a computer readable program is provided. The computer readable program, when executed on a computing device, causes the computing device to perform various ones of, and combinations of, the operations outlined above with regard to the method illustrative embodiment.
In yet another illustrative embodiment, a system/apparatus is provided. The system/apparatus may comprise one or more processors and a memory coupled to the one or more processors. The memory may comprise instructions which, when executed by the one or more processors, cause the one or more processors to perform various ones of, and combinations of, the operations outlined above with regard to the method illustrative embodiment.
These and other features and advantages of the present invention will be described in, or will become apparent to those of ordinary skill in the art in view of, the following detailed description of the example embodiments of the present invention.
The illustrative embodiments provide a computing tool and computing tool operations and/or functionality for providing a command-line interface contextual executable actions interface. The mechanisms of the illustrative embodiments provide executable context aware actions on specific items of a command-line output in a context menu. The illustrative embodiments add intelligence to the output of the commands executed on Command-Line Interfaces (CLIs) and provide an easy to use interface with actions to operate a command-line without any change in the user interface hardware or technology.
As noted above, various CLIs are known to exist, and users currently must have intimate knowledge of the commands and syntax of the commands in order to make use of these CLIs. The commands executed in the CLI emit textual output which is printed in the CLI itself after the command is executed. The textual output that the CLI emits is referred to herein as the CLI output.
It has been recognized that certain types of operations, e.g., application management operations, file management operations, networking, and the like, may be executed using a CLI but require the execution of a series of CLI commands in the CLI. Each CLI command in the series of CLI commands may be dependent on the output of the previous CLI command. In such situations, currently, a user would need to keep referring back to certain items from the outputted text of the CLI, e.g., the CLI output of the previous CLI command, by typing/copying/tabbing in order to form the next CLI command to execute. This manual typing/copying/tabbing of items of outputted text from the CLI output to form new commands is error-prone, cumbersome, and time consuming, and it also requires that the user be aware of the CLI command syntax.
In accordance with the illustrative embodiments, this cumbersome and error-prone operation is avoided by augmenting the CLI's output mechanisms to have contextually appropriate executable actions presented to the user via a User Interface (UI). The illustrative embodiments provide computing tools that tag the CLI command that generated a CLI output, determine the appropriate action templates for the components of the CLI output based on the context of the CLI output, and present a UI in combination with the components of the CLI output which presents accessible UI elements for implementing actions based on the action templates.
That is, after a user inputs a CLI command into a CLI, the CLI generates a CLI output corresponding to the results of executing the CLI command. The CLI output comprises a plurality of components, e.g., names of files, names of servers, names of pods in a cluster, etc. The “components” are the substantive elements of the CLI output which are the focus or subject of the previously executed CLI command. The mechanisms of the illustrative embodiments parse the components based on the context of the CLI output. The “context,” in some of the illustrative embodiments, is the CLI command that was executed by the CLI to generate the CLI output; however, in other illustrative embodiments, the context may be another previously executed CLI command within a CLI command window, e.g., within the past n CLI commands. The context informs the mechanisms of the illustrative embodiments as to how to identify and understand the components in the CLI output and their metadata so as to provide executable actions in a decorated CLI output, as discussed hereafter. Each CLI command is a separate context. Every CLI command execution has its own metadata file associated with the CLI output generated by the execution of the CLI command; the metadata file compiles the metadata for each of the components in the CLI output. Even execution of the same or different CLI commands are considered separate contexts.
1 1 1 2 1 1 1 2 3 3 1 A user may manually select the context by selecting from a list of previously executed n CLI commands. By default, the latest CLI command execution would be the automatically determined current context; this default is overridden if a user selects another context from within the CLI command window. For example, suppose that CLI commandis a command that generates a list of servers. Assume that CLI commandis executed and it returns the following CLI output: server, server. If CLI commandis executed again, after some time, this second execution of the CLI commandmay generate a different CLI output that returns: server, server, server. The metadata information about serverwould not be present in the metadata file for the first run of CLI command. Thus, every separate command execution of the same or different CLI command is considered a different context.
The CLI command that is executed is tagged with a unique tag. In some cases, this unique tag may be a hash of the CLI command, but other mechanisms for generating or assigning a unique tag may be used without departing from the spirit and scope of the present invention. The unique tag may be used to perform a lookup in a command repository to determine if the same command has been previously processed by the CLI and a corresponding set of actions and corresponding action templates for a UI have already been generated for components of the CLI output of this command. If not, the components of the CLI output are identified and correlated with one or more predefined action templates specifying actions that can be performed with regard to that particular type of component and having code that implements the actions should the user select them. The determination of the action templates is based on the identified context, e.g., by default the previously executed CLI command that generated the CLI output.
The resulting set of actions and their templates are then presented in a UI as user selectable UI elements such as in response to a user interacting with the component in the CLI output, e.g., a user “right-clicking” a component in a listing of components in the CLI output. In response to the user selecting a UI element from this augmented presentation of the CLI output, e.g., the presentation of a contextually decorated CLI output, a new CLI command may be automatically generated using the corresponding action template of the action that corresponds to the selected UI element, and the new CLI command may be automatically input to the CLI for execution and generation of a new CLI output. This process can be repeated for each CLI output generated by the CLI in response to a user input CLI command or an automatically generated and executed CLI command.
For example, with the mechanisms of the illustrative embodiments, if a CLI is used to perform a file system management operation resulting in a listing of the files in a directory, such as by typing “ls” in the CLI, the user is presented with a UI through which the user can select a file name in the resulting CLI output listing of files. The user may then “right-click” with a computer mouse, or otherwise provide an input to select the file name, which causes a pop-up menu (or other UI element) to be presented. The user may then, via this pop-up menu or other UI element, select an option and an ultimate action, such as “File” and then the “Delete” action, in order to delete the file corresponding to the selected file name. The presentation of options and actions in the UI element may have various levels for different combinations of actions, e.g., there may be multiple possible actions below the “File” option level, or multiple different actions at the selectable top component level (at the same level as the “File” option). For example, the option at the top level of the multi-level UI may correspond to the specific type of component selected in the CLI output, as well as other more standardized options, with subsequent UI levels presenting UI elements corresponding to actions and/or sub-actions that may be user selectable to cause the corresponding action/sub-action to be automatically executed with regard to the selected component.
As another example, with the mechanisms of the illustrative embodiments, if a CLI is used to perform a container management operation, a user may list the pods in a cluster by typing a “kubectl get pods” command into the CLI. The user is presented with a listing of the pods as the CLI output from which the user may select a pod name and access a UI element, e.g., a pop-up menu or the like, through which the user may select a “Pod” option and an “Exec” option which causes the user to land on the “bash” of the pod action UI element.
In still another example, if a CLI is used to perform a cloud management operation, a user can obtain a listing of the servers of a cloud account by typing in, for example, the “ibmcloud sl vs list” command. The user interacts with the resulting CLI output by selecting a server from the listing; the user may be presented with a UI element through which the user can select the “server” option and then the “reboot” action UI element. As a result, the selected server would then be automatically rebooted by generating a new CLI command automatically that is input to the CLI and executed.
It should be appreciated that in each of the above examples, the actions presented through the UI element will be automatically determined and customized to the particular selected component based on the type of component and the context of the component, e.g., the previous CLI command. Moreover, by providing user selectable elements in the UI rather than requiring the user to type/copy/tab to generate the CLI command to achieve a desired operation, the likelihood of an error in the generation of the subsequent CLI command is minimized.
Before continuing the discussion of the various aspects of the illustrative embodiments and the improved computer operations performed by the illustrative embodiments, it should first be appreciated that throughout this description the term “mechanism” will be used to refer to elements of the present invention that perform various operations, functions, and the like. A “mechanism,” as the term is used herein, may be an implementation of the functions or aspects of the illustrative embodiments in the form of an apparatus, a procedure, or a computer program product. In the case of a procedure, the procedure is implemented by one or more devices, apparatus, computers, data processing systems, or the like. In the case of a computer program product, the logic represented by computer code or instructions embodied in or on the computer program product is executed by one or more hardware devices in order to implement the functionality or perform the operations associated with the specific “mechanism.” Thus, the mechanisms described herein may be implemented as specialized hardware, software executing on hardware to thereby configure the hardware to implement the specialized functionality of the present invention which the hardware would not otherwise be able to perform, software instructions stored on a medium such that the instructions are readily executable by hardware to thereby specifically configure the hardware to perform the recited functionality and specific computer operations described herein, a procedure or method for executing the functions, or a combination of any of the above.
The present description and claims may make use of the terms “a,” “at least one of,” and “one or more of” with regard to particular features and elements of the illustrative embodiments. It should be appreciated that these terms and phrases are intended to state that there is at least one of the particular feature or element present in the particular illustrative embodiment but that more than one can also be present. That is, these terms/phrases are not intended to limit the description or claims to a single feature/element being present or require that a plurality of such features/elements be present. To the contrary, these terms/phrases only require at least a single feature/element with the possibility of a plurality of such features/elements being within the scope of the description and claims.
Moreover, it should be appreciated that the use of the term “engine,” if used herein with regard to describing embodiments and features of the invention, is not intended to be limiting of any particular technological implementation for accomplishing and/or performing the actions, steps, processes, etc., attributable to and/or performed by the engine, but is limited in that the “engine” is implemented in computer technology and its actions, steps, processes, etc. are not performed as mental processes or performed through manual effort, even if the engine may work in conjunction with manual input or may provide output intended for manual or mental consumption. The engine is implemented as one or more of software executing on hardware, dedicated hardware, and/or firmware, or any combination thereof, that is specifically configured to perform the specified functions. The hardware may include, but is not limited to, use of a processor in combination with appropriate software loaded or stored in a machine readable memory and executed by the processor to thereby specifically configure the processor for a specialized purpose that comprises one or more of the functions of one or more embodiments of the present invention. Further, any name associated with a particular engine is, unless otherwise specified, for purposes of convenience of reference and not intended to be limiting to a specific implementation. Additionally, any functionality attributed to an engine may be equally performed by multiple engines, incorporated into and/or combined with the functionality of another engine of the same or different type, or distributed across one or more engines of various configurations.
In addition, it should be appreciated that the following description uses a plurality of various examples for various elements of the illustrative embodiments to further illustrate example implementations of the illustrative embodiments and to aid in the understanding of the mechanisms of the illustrative embodiments. These examples are intended to be non-limiting and are not exhaustive of the various possibilities for implementing the mechanisms of the illustrative embodiments. It will be apparent to those of ordinary skill in the art in view of the present description that there are many other alternative implementations for these various elements that may be utilized in addition to, or in replacement of, the examples provided herein without departing from the spirit and scope of the present invention.
Various aspects of the present disclosure are described by narrative text, flowcharts, block diagrams of computer systems and/or block diagrams of the machine logic included in computer program product (CPP) embodiments. With respect to any flowcharts, depending upon the technology involved, the operations can be performed in a different order than what is shown in a given flowchart. For example, again depending upon the technology involved, two operations shown in successive flowchart blocks may be performed in reverse order, as a single integrated step, concurrently, or in a manner at least partially overlapping in time.
A computer program product embodiment (“CPP embodiment” or “CPP”) is a term used in the present disclosure to describe any set of one, or more, storage media (also called “mediums”) collectively included in a set of one, or more, storage devices that collectively include machine readable code corresponding to instructions and/or data for performing computer operations specified in a given CPP claim. A “storage device” is any tangible device that can retain and store instructions for use by a computer processor. Without limitation, the computer readable storage medium may be an electronic storage medium, a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, a semiconductor storage medium, a mechanical storage medium, or any suitable combination of the foregoing. Some known types of storage devices that include these mediums include: diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded device (such as punch cards or pits/lands formed in a major surface of a disc) or any suitable combination of the foregoing. A computer readable storage medium, as that term is used in the present disclosure, is not to be construed as storage in the form of transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide, light pulses passing through a fiber optic cable, electrical signals communicated through a wire, and/or other transmission media. As will be understood by those of skill in the art, data is typically moved at some occasional points in time during normal operations of a storage device, such as during access, de-fragmentation or garbage collection, but this does not render the storage device as transitory because the data is not transitory while it is stored.
It should be appreciated that certain features of the invention, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, various features of the invention, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable sub-combination.
The present invention may be a specifically configured computing system, configured with hardware and/or software that is itself specifically configured to implement the particular mechanisms and functionality described herein, a method implemented by the specifically configured computing system, and/or a computer program product comprising software logic that is loaded into a computing system to specifically configure the computing system to implement the mechanisms and functionality described herein. Whether recited as a system, method, of computer program product, it should be appreciated that the illustrative embodiments described herein are specifically directed to an improved computing tool and the methodology implemented by this improved computing tool. In particular, the improved computing tool of the illustrative embodiments specifically provides a functionality for automatically presenting user selectable contextually relevant actions for components of CLI outputs. The improved computing tool implements mechanism and functionality, such as a command-line interface (CLI) contextual executable actions interface engine, which cannot be practically performed by human beings either outside of, or with the assistance of, a technical environment, such as a mental process or the like. The improved computing tool provides a practical application of the methodology at least in that the improved computing tool is able to automatically generate context based computer executable actions for components of a CLI output which may be user selectable via one or more UI elements.
1 FIG. 100 200 200 100 101 102 103 104 105 106 101 110 120 121 111 112 113 122 200 114 123 124 125 115 104 130 105 140 141 142 143 144 is an example diagram of a distributed data processing system environment in which aspects of the illustrative embodiments may be implemented and at least some of the computer code involved in performing the inventive methods may be executed. That is, computing environmentcontains an example of an environment for the execution of at least some of the computer code involved in performing the inventive methods, such as CLI contextual executable actions interface engine. In addition to CLI contextual executable actions interface engine, computing environmentincludes, for example, computer, wide area network (WAN), end user device (EUD), remote server, public cloud, and private cloud. In this embodiment, computerincludes processor set(including processing circuitryand cache), communication fabric, volatile memory, persistent storage(including operating systemand CLI contextual executable actions interface engine, as identified above), peripheral device set(including user interface (UI), device set, storage, and Internet of Things (IoT) sensor set), and network module. Remote serverincludes remote database. Public cloudincludes gateway, cloud orchestration module, host physical machine set, virtual machine set, and container set.
101 130 100 101 101 101 1 FIG. Computermay take the form of a desktop computer, laptop computer, tablet computer, smart phone, smart watch or other wearable computer, mainframe computer, quantum computer or any other form of computer or mobile device now known or to be developed in the future that is capable of running a program, accessing a network or querying a database, such as remote database. As is well understood in the art of computer technology, and depending upon the technology, performance of a computer-implemented method may be distributed among multiple computers and/or between multiple locations. On the other hand, in this presentation of computing environment, detailed discussion is focused on a single computer, specifically computer, to keep the presentation as simple as possible. Computermay be located in a cloud, even though it is not shown in a cloud in. On the other hand, computeris not required to be in a cloud except to any extent as may be affirmatively indicated.
110 120 120 121 110 110 Processor setincludes one, or more, computer processors of any type now known or to be developed in the future. Processing circuitrymay be distributed over multiple packages, for example, multiple, coordinated integrated circuit chips. Processing circuitrymay implement multiple processor threads and/or multiple processor cores. Cacheis memory that is located in the processor chip package(s) and is typically used for data or code that should be available for rapid access by the threads or cores running on processor set. Cache memories are typically organized into multiple levels depending upon relative proximity to the processing circuitry. Alternatively, some, or all, of the cache for the processor set may be located “off chip.” In some computing environments, processor setmay be designed for working with qubits and performing quantum computing.
101 110 101 121 110 100 200 113 Computer readable program instructions are typically loaded onto computerto cause a series of operational steps to be performed by processor setof computerand thereby effect a computer-implemented method, such that the instructions thus executed will instantiate the methods specified in flowcharts and/or narrative descriptions of computer-implemented methods included in this document (collectively referred to as “the inventive methods”). These computer readable program instructions are stored in various types of computer readable storage media, such as cacheand the other storage media discussed below. The program instructions, and associated data, are accessed by processor setto control and direct performance of the inventive methods. In computing environment, at least some of the instructions for performing the inventive methods may be stored in CLI contextual executable actions interface enginein persistent storage.
111 101 Communication fabricis the signal conduction paths that allow the various components of computerto communicate with each other. Typically, this fabric is made of switches and electrically conductive paths, such as the switches and electrically conductive paths that make up busses, bridges, physical input/output ports and the like. Other types of signal communication paths may be used, such as fiber optic communication paths and/or wireless communication paths.
112 101 112 101 101 Volatile memoryis any type of volatile memory now known or to be developed in the future. Examples include dynamic type random access memory (RAM) or static type RAM. Typically, the volatile memory is characterized by random access, but this is not required unless affirmatively indicated. In computer, the volatile memoryis located in a single package and is internal to computer, but, alternatively or additionally, the volatile memory may be distributed over multiple packages and/or located externally with respect to computer.
113 101 113 113 122 200 Persistent storageis any form of non-volatile storage for computers that is now known or to be developed in the future. The non-volatility of this storage means that the stored data is maintained regardless of whether power is being supplied to computerand/or directly to persistent storage. Persistent storagemay be a read only memory (ROM), but typically at least a portion of the persistent storage allows writing of data, deletion of data and re-writing of data. Some familiar forms of persistent storage include magnetic disks and solid state storage devices. Operating systemmay take several forms, such as various known proprietary operating systems or open source Portable Operating System Interface type operating systems that employ a kernel. The code included in CLI contextual executable actions interface enginetypically includes at least some of the computer code involved in performing the inventive methods.
114 101 101 123 124 124 124 101 101 125 Peripheral device setincludes the set of peripheral devices of computer. Data communication connections between the peripheral devices and the other components of computermay be implemented in various ways, such as Bluetooth connections, Near-Field Communication (NFC) connections, connections made by cables (such as universal serial bus (USB) type cables), insertion type connections (for example, secure digital (SD) card), connections made through local area communication networks and even connections made through wide area networks such as the internet. In various embodiments, UI device setmay include components such as a display screen, speaker, microphone, wearable devices (such as goggles and smart watches), keyboard, mouse, printer, touchpad, game controllers, and haptic devices. Storageis external storage, such as an external hard drive, or insertable storage, such as an SD card. Storagemay be persistent and/or volatile. In some embodiments, storagemay take the form of a quantum computing storage device for storing data in the form of qubits. In embodiments where computeris required to have a large amount of storage (for example, where computerlocally stores and manages a large database) then this storage may be provided by peripheral storage devices designed for storing very large amounts of data, such as a storage area network (SAN) that is shared by multiple, geographically distributed computers. IoT sensor setis made up of sensors that can be used in Internet of Things applications. For example, one sensor may be a thermometer and another sensor may be a motion detector.
115 101 102 115 115 115 101 115 Network moduleis the collection of computer software, hardware, and firmware that allows computerto communicate with other computers through WAN. Network modulemay include hardware, such as modems or Wi-Fi signal transceivers, software for packetizing and/or de-packetizing data for communication network transmission, and/or web browser software for communicating data over the internet. In some embodiments, network control functions and network forwarding functions of network moduleare performed on the same physical hardware device. In other embodiments (for example, embodiments that utilize software-defined networking (SDN)), the control functions and the forwarding functions of network moduleare performed on physically separate devices, such that the control functions manage several different network hardware devices. Computer readable program instructions for performing the inventive methods can typically be downloaded to computerfrom an external computer or external storage device through a network adapter card or network interface included in network module.
102 WANis any wide area network (for example, the internet) capable of communicating computer data over non-local distances by any technology for communicating computer data, now known or to be developed in the future. In some embodiments, the WAN may be replaced and/or supplemented by local area networks (LANs) designed to communicate data between devices located in a local area, such as a Wi-Fi network. The WAN and/or LANs typically include computer hardware such as copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and edge servers.
103 101 101 103 101 101 115 101 102 103 103 103 End user device (EUD)is any computer system that is used and controlled by an end user (for example, a customer of an enterprise that operates computer), and may take any of the forms discussed above in connection with computer. EUDtypically receives helpful and useful data from the operations of computer. For example, in a hypothetical case where computeris designed to provide a recommendation to an end user, this recommendation would typically be communicated from network moduleof computerthrough WANto EUD. In this way, EUDcan display, or otherwise present, the recommendation to an end user. In some embodiments, EUDmay be a client device, such as thin client, heavy client, mainframe computer, desktop computer and so on.
104 101 104 101 104 101 101 101 130 104 Remote serveris any computer system that serves at least some data and/or functionality to computer. Remote servermay be controlled and used by the same entity that operates computer. Remote serverrepresents the machine(s) that collect and store helpful and useful data for use by other computers, such as computer. For example, in a hypothetical case where computeris designed and programmed to provide a recommendation based on historical data, then this historical data may be provided to computerfrom remote databaseof remote server.
105 105 141 105 142 105 143 144 141 140 105 102 Public cloudis any computer system available for use by multiple entities that provides on-demand availability of computer system resources and/or other computer capabilities, especially data storage (cloud storage) and computing power, without direct active management by the user. Cloud computing typically leverages sharing of resources to achieve coherence and economies of scale. The direct and active management of the computing resources of public cloudis performed by the computer hardware and/or software of cloud orchestration module. The computing resources provided by public cloudare typically implemented by virtual computing environments that run on various computers making up the computers of host physical machine set, which is the universe of physical computers in and/or available to public cloud. The virtual computing environments (VCEs) typically take the form of virtual machines from virtual machine setand/or containers from container set. It is understood that these VCEs may be stored as images and may be transferred among and between the various physical machine hosts, either as images or after instantiation of the VCE. Cloud orchestration modulemanages the transfer and storage of images, deploys new instantiations of VCEs and manages active instantiations of VCE deployments. Gatewayis the collection of computer software, hardware, and firmware that allows public cloudto communicate through WAN.
Some further explanation of virtualized computing environments (VCEs) will now be provided. VCEs can be stored as “images.” A new active instance of the VCE can be instantiated from the image. Two familiar types of VCEs are virtual machines and containers. A container is a VCE that uses operating-system-level virtualization. This refers to an operating system feature in which the kernel allows the existence of multiple isolated user-space instances, called containers. These isolated user-space instances typically behave as real computers from the point of view of programs running in them. A computer program running on an ordinary operating system can utilize all resources of that computer, such as connected devices, files and folders, network shares, CPU power, and quantifiable hardware capabilities. However, programs running inside a container can only use the contents of the container and devices assigned to the container, a feature which is known as containerization.
106 105 106 102 105 106 Private cloudis similar to public cloud, except that the computing resources are only available for use by a single enterprise. While private cloudis depicted as being in communication with WAN, in other embodiments a private cloud may be disconnected from the internet entirely and only accessible through a local/private network. A hybrid cloud is a composition of multiple clouds of different types (for example, private, community or public cloud types), often respectively implemented by different vendors. Each of the multiple clouds remains a separate and discrete entity, but the larger hybrid cloud architecture is bound together by standardized or proprietary technology that enables orchestration, management, and/or data/application portability between the multiple constituent clouds. In this embodiment, public cloudand private cloudare both part of a larger hybrid cloud.
1 FIG. 101 104 200 101 104 As shown in, one or more of the computing devices, e.g., computeror remote server, may be specifically configured to implement a CLI contextual executable actions interface engine. The configuring of the computing device may comprise the providing of application specific hardware, firmware, or the like to facilitate the performance of the operations and generation of the outputs described herein with regard to the illustrative embodiments. The configuring of the computing device may also, or alternatively, comprise the providing of software applications stored in one or more storage devices and loaded into memory of a computing device, such as computeror remote server, for causing one or more hardware processors of the computing device to execute the software applications that configure the processors to perform the operations and generate the outputs described herein with regard to the illustrative embodiments. Moreover, any combination of application specific hardware, firmware, software applications executed on hardware, or the like, may be used without departing from the spirit and scope of the illustrative embodiments.
It should be appreciated that once the computing device is configured in one of these ways, the computing device becomes a specialized computing device specifically configured to implement the mechanisms of the illustrative embodiments and is not a general purpose computing device. Moreover, as described hereafter, the implementation of the mechanisms of the illustrative embodiments improves the functionality of the computing device and provides a useful and concrete result that facilitates automated generation of CLI output context dependent UI elements for performing series of CLI commands to accomplish operations that require multiple CLI command inputs.
2 FIG. 2 FIG. is an example block diagram illustrating the primary operational components of a Command-Line Interface (CLI) contextual executable actions interface engine in accordance with one illustrative embodiment. The operational components shown inmay be implemented as dedicated computer hardware components, computer software executing on computer hardware which is then configured to perform the specific computer operations attributed to that component, or any combination of dedicated computer hardware and computer software configured computer hardware. It should be appreciated that these operational components perform the attributed operations automatically, without human intervention, even though inputs may be provided by human beings, e.g., search queries, and the resulting output may aid human beings. The invention is specifically directed to the automatically operating computer components directed to improving the way that complex CLI operations are performed, e.g., those requiring a series of CLI commands to accomplish the overall task. The illustrative embodiments provide a specific solution that implements CLI output analysis and identification of context specific action item User Interface (UI) elements for components of CLI outputs. The illustrative embodiments further provide a specific solution that includes the automated performance of the corresponding actions based on a user selection of the UI elements. These features of the illustrative embodiments cannot be practically performed by human beings as a mental process and are not directed to organizing any human activity.
2 FIG. 200 210 220 230 240 250 260 270 280 200 290 290 200 292 294 296 298 290 200 290 200 210 220 230 200 200 296 298 As shown in, the CLI contextual executable (CLICE) actions interface enginecomprises a CLI command receiver, a contextual command execution engine, a contextually decorated output generator, a contextually decorated output to CLI client streaming engine, a contextually decorated output storage, a contextual output interpreter, a contextually enabled user interface option creator, and a CLI configuration storage. The CLICE actions interface engineoperates in conjunction with a CLIprovided on the same or a different data processing system. In the depicted example, the CLIand CLICE actions interface engineare provided on the same data processing system, but commands may also be received via one or more data networksfrom client computing devices-. In the illustrative embodiments described herein, while the CLIis shown to be a separate element from the CLICE actions interface engine, in other illustrative embodiments, these elementsandmay be integrated with one another. In some illustrative embodiments, the CLI command receiver, contextual command execution engine, and contextual decorated output generatormay be implemented locally relative to the CLICE actions interface engineor remotely from the CLICE actions interface engine, such as on one or more of the client computing devices-.
290 200 290 202 296 298 200 290 210 220 220 With the mechanisms of the illustrative embodiments, a user may trigger a CLI command (also simply referred to as a “command” herein) on the CLI, which again may be local, remote, or even integrated with the CLICE actions interface engine. The user may trigger the command by inputting a textual command into the CLIvia a CLI client interfaceof a client computing device-, for example, or the command may be automatically generated by an application or by the CLICE actions interface engine, as discussed hereafter. The command directed to the CLIis received by the CLI command receiverwhich provides the command to the contextual command execution engine. The contextual command execution enginecan execute the command on a local or remote computing device using, for example, local libraries, REST, gRPC, or the like.
220 220 220 220 222 220 222 230 222 The contextual command execution engineperforms the action required by the command, e.g., extracting details of all files in a directory, extracting details of a deployment in a containerized service cluster, extracting details of all servers or virtual machines of a cloud account, showing the network file storages provisioned in a cloud account, displaying the network interfaces attached to a computer device, calling a REST API which returns a JSON containing all infrastructure details of all types of cloud resources provisioned in the cloud account, etc. After the contextual command execution engineexecutes the actions, the contextual command execution enginehas the details of the components which are to be provided in the CLI output. The command execution enginehas the information about the command actions and other metadata for each type of component such as may be stored in a datastoreassociated with the command execution engine. That is, the datastoremay store data structures specifying mappings between component types, contexts, and appropriate actions and action templates such that given a context and a component type, a corresponding set of one or more actions, and their action templates may be identified and used to provide component metadata specifying these actions and action templates. The contextually decorated output generatormay refer to this stored component metadata in the datastorefor each component of a CLI output to thereby form the complete metadata file for the CLI output which will contain metadata for all types of components included in the CLI output.
260 260 222 The contextual output interpretercomprises computer logic that parses the CLI output to identify the components of the CLI output and their corresponding portions of the metadata file. The contextual output interpreterperforms a search of the text of a CLI output to match the text to a tag, e.g., <component-name>, in the metadata file. This is performed for all the components in the CLI output with regard to each of the component descriptions present in the metadata file for the CLI output. The <component-actions> tags, in the component details present in the metadata file, contain the actions which are applicable for the component. For each <component-action> in the metadata file, there is a corresponding <command-template>which explains how to form a new CLI command to perform the corresponding action. The context, e.g., the previously executed CLI command, and component type of components in the CLI output are used to select the actions, e.g., one or more <component-actions>, and action templates, e.g., one or more <command-template>, for the components of the CLI output based on the mappings stored in the datastore.
230 260 Based on the identification of the components present in the CLI output, the contextually decorated output generatoradds tags around the component identifiers, e.g., names or the like, in the CLI output identified by the contextual output interpreter, e.g., pods, servers, files, etc., to thereby “decorate” the output. The term “decorated” or “contextually decorated” refers to the metadata for the components in the CLI output being associated with the components in the CLI output as tags. These tags are CLI command execution specific and the metadata associated with the tags “decorate” the CLI output with additional action and action templates specific to the CLI command execution context. By default, the context would be the last CLI command executed. However, as noted above, a user can set the context as any past CLI command executed on the CLI within a given CLI command window, e.g., n previous CLI commands. The stored metadata file of the previously executed CLI command (context) may be used to create the tags in the contextually decorated CLI output and the corresponding UI options.
The tag based metadata around a component identifier may contain information about the actions which can be performed on that component. For example, if the component is a server, there may be various actions including start, reboot, reload, shutdown, power-off, power-on, and the like that are identified as being available in the context of that component in the CLI output. However, for a component that is a pod in a containerized system cluster, then the actions may be log, execute, add storage, delete, and the like, and, under the execute option, specific actions of “sh” and “bash” may be provided. The tag based metadata may also contain command templates for the commands to implement the corresponding actions with regard to the selected component.
220 260 230 250 230 250 Thus, based on the execution of the action required by the command via the contextual command execution engine, and the interpretation and understanding of the components in the CLI output by the contextual output interpreter, the contextual decoration of the CLI output by the contextual decorated output generatorgenerates contextually decorated output. The contextually decorated output storagecomprises a database which stores the contextually decorated output generated by the contextually decorated output generator. The contextually decorated output, comprising the metadata for the components, is stored in the storagein association with the unique identifier of the CLI command so that it can be retrieved for use if the user changes the context to any previously executed CLI command when processing other subsequent CLI commands, for example.
230 In generating the contextually decorated output, the contextual decorated output generatormay generate a unique identifier for the components of the CLI output that will have corresponding metadata with a specified structure. Each component metadata is associated with the unique identifier for the CLI command that generated the CLI output. For example, the component metadata may comprise component name, component type, possible actions, and a command template for each possible action. For each command template, for each possible action, the metadata for that command template may include the action, a corresponding command, parameters, and any subcommands whose structure will be the same as the command. The component metadata may be encoded in the unique identifier for the CLI command to thereby associate the CLI output's components with the CLI command.
270 290 240 202 202 202 The contextually enabled user interface option creatorgenerates the UI elements for components through which a user may select actions to be performed with regard to a selected component of the CLI output and any appropriate CLI options for these actions. The CLI output then automatically generates a CLI command to execute the corresponding action. Action templates that correspond to these actions are used to automatically generate new CLI commands for submission to the CLIwhich then executes the new CLI commands. The UI elements associated with a particular component are specifically generated for that particular component within the given context, e.g., the previously executed CLI command. The UI elements may be presented using any suitable UI component, e.g., pop-up menu, drop-down menu, selectable text or images, and the like. The required information for rendering these UI elements is presented in the stream of the contextually decorated output. The stream is streamed by the contextually decorated output from CLI client streaming engineto the CLI client interfacethat submitted the original CLI command, e.g., a text output of the command execution is streamed to the CLI client interface. The text output may be augmented or contextually decorated at the CLI client interfaceto include the tags corresponding to the metadata file of the CLI output.
202 240 202 202 At the CLI client interface, the user may interact with the contextually decorated CLI output to select a UI element for an action associated with a component in the CLI output. For example, a user may be presented with the contextually decorated CLI output by the streaming engineand via the CLI client interface. At the CLI client interface, the components that may have associated tags generated by the mechanisms of the illustrative embodiments may be conspicuously identified in the presentation of the contextually decorated CLI output, e.g., highlighted, colored in a different color, different font, different font size, or the like. In some cases, components of the same component type may be conspicuously identified in a similar manner, e.g., all pods are colored in a first color, all servers are colored in a second color, all files are colored in a third color, or the like.
290 A user may then “right-click” on, or otherwise select, a component to trigger the presentation of the actions that may be performed in association with the component via the UI elements corresponding to the actions specified in the metadata tags associated with the selected component. In response to the user selecting an action in the UI elements, the corresponding action template is used to generate a new CLI command to perform that action on the particular selected component. The automatically generated new CLI command may then be submitted to the CLIfor execution and the process may be repeated with the additional CLI output generated as a consequence of this new CLI command.
The new CLI command will have parameters that may be automatically obtained from the metadata generated from the execution of the CLI command. However, in some cases, UI elements may be provided to receive user input for specifying particular parameters or parameter values for inclusion in the new CLI command. For example, a UI may provide UI elements, e.g., drop down menus, listings of all values of parameters, or any other UI element, to thereby select parameter values based on the metadata generated by the execution of the CLI command. If the metadata indicates that a particular parameter's value needs to be provided by a user, then an appropriate UI element may be provided, e.g., a text box or the like, through which the user can select or input the parameter and/or the parameter value. However, the user would not need to alter the CLI command that is executed, but only select or provide the parameter/parameter value for the execution of the automatically generated CLI command.
280 As noted above, the actions associated with a component may be bound to a context; as a default, the context may be the last command executed by the CLI. However, in some situations, a user may specify an override of this default context and may specify any of n previous commands. This preference for the context to be used when generating contextually decorated CLI outputs may be specified in the CLI configuration storage, e.g., use the default, use the last 10 CLI commands as a CLI window from which a user selects the applicable context, or the like.
3 FIG. 3 FIG. 3 FIG. 310 310 312 314 322 322 324 326 As mentioned above, the CLI command has a unique tag which encodes the components and their associated actions and action templates.is an example diagram of a unique tag for a CLI command and the corresponding component metadata for components of a CLI output in accordance with one illustrative embodiment. As shown in, the CLI command tagis a unique string of text, such as a hash value or the like, which uniquely identifies the CLI command and corresponding CLI output components and encodes the various component metadata, actions, and action templates. As shown in, a component's metadataincludes a component type, component actions listing, command templates for the actions-, which in some cases includes subcommands as well, e.g., command templatecomprises subcommandsand.
220 220 222 220 230 Thus, in determining what actions and what action templates are appropriate for the particular components of the CLI output, given the context, e.g., a previous CLI command, the illustrative embodiments generate the metadata file for the CLI output and read the metadata file to create the UI options which are the basis for the automated, or semi-automated, generation of a subsequent CLI command. In generating the metadata file, the contextual command execution engine, which executes the CLI command, knows what components it is writing to the CLI output. The contextual command execution enginealso has the information about the command actions and other metadata for each type of component stored in a datastoreassociated with the contextual command execution engine. The contextually decorated output generatorrefers to this stored component metadata for each component to form the complete metadata file for the CLI output which will contain metadata for all types of components in the CLI output.
With regard to reading the metadata file to create the UI options and generate new CLI commands, the metadata file lists component identifiers, e.g., component names, which may be searched for based on a user selection of a component in the decorated CLI output presentation. That is, a user may select a component in the CLI output and that selection is used to perform a search of the metadata file for a corresponding portion of metadata for that component. The corresponding metadata in the metadata file is then used to automatically generate the UI options for that selected component in the CLI output presentation. The user may then select a UI option to thereby select the action causing the action template to be used to generate a new CLI command to execute the action. The parameters for the new CLI command may be automatically determined from the metadata file and/or in some cases may be provided by user input to one or more UI elements if needed.
4 FIG.A 4 FIG.A 4 FIG.A 410 420 As discussed above, the CLI command's unique identifier or tag may be used to drive the presentation of UI elements in the presentation of the contextually decorated CLI output via the CLI client interface.is an example diagram of one CLI output user interface generated in accordance with at least one illustrative embodiment. The CLI output user interface as shown inis for a CLI output that provides a listing of the pods of a cluster via a command in a CLI. As shown in, the CLI output, which is contextually decorated by the present invention, includes a listing of the pods of the cluster. The pods in the listing are the components of the CLI output and are user selectable via the CLI client interface. In response to the user selecting one of these pods, e.g., by right-clicking on the pod name in the listing, a pop-up mention is presentedhaving an option for “Pod” which is the component type of the selected component.
430 430 440 In response to the user selecting “Pod,” the user is presented with a listing of actionsthat are appropriate for the selected “Pod” as indicated by the component metadata encoded in the unique identifier/tag for the CLI command. In this case, the action listincludes actions of “Logs,” “Exec,” “Add Storage,” and “Delete,” In response to the user selecting “Exec,” the user is presented with subcommandsof “sh” and “bash”. By selecting bash, a new CLI command is automatically generated and input to the CLI to thereby log into the selected pod. If one were to try to perform this operation manually, they would have to refer to the pod listing and manually input the command “kubectl —kubeconfig kue-config.yaml -n production exec -it jcp-trialcard-pdf-sit-dal10-7f9fcf85c4-5mdvn -- /bin/bash.” This requires a user to have knowledge of the CLI and its commands and parameters for the commands as well as manual referencing back to the CLI output to populate a manual command. The illustrative embodiments eliminate all this effort through the automated contextual decoration of the CLI output and providing of UI elements specific to the components and context of the CLI output.
4 FIG.B 4 FIG.B 4 FIG.A 450 450 460 470 is an example diagram of another CLI output user interface generated in accordance with at least one illustrative embodiment. The example shown inis for rebooting a server from a server listing generated via a command in CLI. In this case, the CLI command “ibmcloud sl vs list” is used to generate a listing of serversof a cloud account. Each server in the listingis a component of the CLI output and is user selectable similar to the pods in. In response to selecting, e.g., right-clicking, on a particular server, the user is presented with the pop-up menuwhich includes an option for “Server,” which is the component type. In response to selecting the “Server” option, the user is presented with a listing of UI elements for the actionsavailable to be performed on the server, e.g., start, reboot, reload, shutdown, power-off, and power-on.
In response to the user selecting the “Reboot” action, the illustrative embodiments utilize the template in the component metadata corresponding to the action of “Reboot” to thereby generate a new CLI command to cause the selected server to be rebooted. This new CLI command is automatically submitted to the CLI which then executes the command to perform the action and generate a corresponding CLI output. If one were to try to do this manually, the user would have to enter the command “ibmcloud sl vs reboot kube-c3vqipq0mtt3j60jjbg-nonprodclus-pool2-00001ab5 -f” which, again, requires a knowledge of the CLI, the commands, the command parameters, and the like and requires referencing back to the CLI output to populate the command. These knowledge requirements and manual referencing are again avoided by the mechanisms of the illustrative embodiments.
5 FIG. 5 FIG. 5 FIG. 5 FIG. 5 FIG. is an example flowchart outlining an example operation for generating a contextually decorated CLI output in accordance with one illustrative embodiment. It should be appreciated that the operations outlined inare specifically performed automatically by a computer tool of the illustrative embodiments and are not intended to be, and cannot practically be, performed by human beings either as mental processes or by organizing human activity. To the contrary, while human beings may, in some cases, initiate the performance of the operations set forth in, and may, in some cases, make use of the results generated as a consequence of the operations set forth in, the operations inthemselves are specifically performed by the computing tool in an automated manner.
5 FIG. 510 520 530 540 As shown in, the operation starts by receiving a first CLI command which is executed via the CLI to generate a first CLI output (step). The first CLI output is processed to identify one or more components of the first CLI output (step). For each identified component, one or more actions for that component are identified to thereby generate action metadata for that component (step). The action metadata may include an action listing and corresponding action templates for each of the actions. The action metadata may be encoded into a unique identifier for the first CLI command which is then associated with the CLI output to thereby generate a contextually decorated CLI output (step). The unique identifier may be used to retrieve or generate the action listing and action templates. The action listing and action templates may be associated with the components in the CLI output by performing a textual matching between the component identifier in the CLI output and the component identifier in the component metadata encoded in the unique identifier.
550 560 570 580 590 The contextually decorated CLI output is presented to the user via the CLI client interface as a response to the first CLI command (step). Thereafter, the system monitors for a user selection of a CLI output component in the contextually decorated CLI output (step). In response to a component being selected, the corresponding component metadata is used to identify what actions to present to the user as options in one or more UI interface elements for selection by the user (step). The CLI client interface is updated to present these UI interface elements (step) and, in response to a user selecting a UI interface element, the action template is used to generate a new CLI command that is submitted to the CLI to perform the action (step). The operation then terminates. While the operation is shown as terminating at this point, it should be appreciated that this process may be repeated with the subsequent CLI output generated as a consequence of this new CLI command, or entry of other CLI commands by the user.
The description of the present invention has been presented for purposes of illustration and description and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
December 18, 2024
June 18, 2026
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.