Skip to content

Conversation

@thde
Copy link
Member

@thde thde commented Jan 28, 2026

Based on #334 with some improvements on edge cases and reading env variables.

Fixes #333

Closes #334

Copy link
Contributor

@thirdeyenick thirdeyenick left a comment

Choose a reason for hiding this comment

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

Looks good

@thde thde merged commit fab1243 into main Jan 28, 2026
3 checks passed
@thde thde deleted the use-selected-project-for-autocompleting-resources branch January 28, 2026 10:52
Comment on lines +138 to +140
if (arg == "-p" || arg == "--project") && i+1 < len(args) {
return args[i+1]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

All nice and good, but did you test it? It doesn't actually work, for the reasons I stated in https://github.com/ninech/nctl/pull/334/changes#r2721243293

The args don't include the global flags like -p / --project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

App autocompletion dosn't respect the --project flag

4 participants