Skip to content

CLI hotfix to make component type on services work#384

Merged
rocktavious merged 4 commits intomainfrom
kr/cli-hotfix
Mar 27, 2025
Merged

CLI hotfix to make component type on services work#384
rocktavious merged 4 commits intomainfrom
kr/cli-hotfix

Conversation

@rocktavious
Copy link
Collaborator

Resolves #

Problem

The CLI doesn't have support for creating "components" with a "type" - The greater problem is that its going to take 3-4 weeks to get the CLI updated to opslevel-go 2025 because of the nullability changes

Solution

Create a patch to the 2024 version of the CLI with just "type" added to the services APIs so that customers can use the CLI still. The way this works is it abuses the submodule to make a bespoke change to opslevel-go so we can release the CLI with that custom opslevel-go version.

% cat << EOF | go run main.go create service -f -
name: "Kyle CLI Test"
type:
  alias: "vendor"
EOF

and

 % go run main.go list services | grep "Kyle"
Kyle CLI Test                Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8zMTQ4NzI  vendor        kyle_cli_test    

and

Screenshot 2025-03-25 at 2 35 12 PM

Checklist

  • I have run this code, and it appears to resolve the stated issue.
  • This PR has no user interface changes or has already received approval from product management to change the interface.
  • Make a changie entry that explains the customer facing outcome of this change

@rocktavious rocktavious requested a review from p25marti March 25, 2025 19:42
@rocktavious rocktavious self-assigned this Mar 25, 2025
@jasonopslevel jasonopslevel requested review from jasonopslevel and removed request for p25marti March 26, 2025 19:45
Copy link

@jasonopslevel jasonopslevel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)

@rocktavious rocktavious merged commit 5b48938 into main Mar 27, 2025
4 checks passed
@rocktavious rocktavious deleted the kr/cli-hotfix branch March 27, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants