Skip to content

Conversation

gctucker
Copy link
Collaborator

@gctucker gctucker commented Sep 20, 2023

Add a kci-click proof-of-concept replacement for kci using the Click package. It comes with a sample kernelci-click.toml settings file to illustrate how the values can be combined with the command line arguments.

Fixes: #2110

Some sample commands:

$ KCI_SETTINGS=kernelci-click.toml ./kci-click foo bar --verbose
FOO command group
FOO BAR BAZ: 789

$ ./kci-click whoami --no-verbose
{
  "id": "64ef04e7391d44b7fa620d13",
  "active": true,
  "profile": {
    "username": "admin",
    "hashed_password": "<hashed-password>",
    "groups": [
      {
        "id": "6499aa9da02fef8143c1feb0",
        "name": "admin"
      }
    ],
    "email": "[email protected]"
  }
}

Add a kci-click proof-of-concept replacement for kci using the Click
package.  It comes with a sample kernelci-click.toml settings file to
illustrate how the values can be combined with the command line
arguments.

Some sample commands:

  $ KCI_SETTINGS=kernelci-click.toml ./kci-click foo bar --verbose
  FOO command group
  FOO BAR BAZ: 789

  $ ./kci-click whoami --no-verbose
  {
    "id": "64ef04e7391d44b7fa620d13",
    "active": true,
    "profile": {
      "username": "admin",
      "hashed_password": "<hashed-password>",
      "groups": [
        {
          "id": "6499aa9da02fef8143c1feb0",
          "name": "admin"
        }
      ],
      "email": "[email protected]"
    }
  }

Signed-off-by: Guillaume Tucker <[email protected]>
@gctucker
Copy link
Collaborator Author

gctucker commented Oct 6, 2023

Closing this RFC now as we've reached a consensus.

@gctucker gctucker closed this Oct 6, 2023
@gctucker gctucker deleted the kci-click branch October 6, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Investigate click and typer
1 participant