Skip to content

Moved to Discussion #434 - json like structure for commands #585

@arunkumar413

Description

@arunkumar413

Describe the solution you'd like?

Hi Team,

Most of the Linux commands don't have a common structure. Each command has its own options and flags. I recommend a JSON like structure for the commands and their options.

For example:


{
    commandName: "ls",
    options: {
      all: true,
      author: true,
      humanReadable: true,
      recursive: true
    }
  }

This JSON like structure should be parsed into the regular Linux commands and executed. We'll have a terminal feature like text editor that takes JSON input, interprets the JSON like structure into regular commands and outputs the result.

This feature would make the documentation, linting, code completion easier. Each command option would be self explanatory and easier to understand.

Note: This wont be a complete replace of the existing command line but just an addition to the existing command line which takes a JSON structure as a command.



### Is your feature request related to a problem? Please describe.

_No response_

### Additional context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions