Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] kci-click: add kci PoC using Click #2111

Closed
wants to merge 1 commit into from

Conversation

gctucker
Copy link
Contributor

@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": "something@domain.com"
  }
}

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": "something@domain.com"
    }
  }

Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
@gctucker
Copy link
Contributor 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