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

Kr/property assign args #326

Merged
merged 4 commits into from
Sep 3, 2024
Merged

Kr/property assign args #326

merged 4 commits into from
Sep 3, 2024

Conversation

rocktavious
Copy link
Collaborator

@rocktavious rocktavious commented Aug 23, 2024

Resolves #

Problem

It was raised by @morriswchris that we should take in more commandline args to make setting IdentifierInput easier.

https://jk-labs.slack.com/archives/C01K732BV51/p1724424641525339

Solution

Add 2 optional commandline args the override the data from file input if specified and help make IdentifierInput easier to specify.

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

src/cmd/property.go Outdated Show resolved Hide resolved
Aliases: []string{"prop"},
Short: "Assign a Property",
Long: `Assign a Property to an Entity by Id or Alias`,
Args: cobra.RangeArgs(0, 2),
Copy link
Contributor

Choose a reason for hiding this comment

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

Neat! TIL RangeArgs() 👀

Copy link
Contributor

@davidbloss davidbloss left a comment

Choose a reason for hiding this comment

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

👏 Pretty slick

@rocktavious rocktavious merged commit 1fffaa7 into main Sep 3, 2024
6 checks passed
@rocktavious rocktavious deleted the kr/property-assign-args branch September 3, 2024 16:09
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