We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a module, where using credentials is optional, e.g.
import dagger from dagger import function, object_type @object_type class Test: username: str | None = None token: dagger.Secret | None = None name: str | None = None @function def call(self) -> str: return f"Hello, {self.name}!"
When I call this module like this, I get a valid response:
$ MY_TOKEN="very_secret_variable" dagger call -m test --token=env:MY_TOKEN --name "World" call Hello, World!
However, when token is missing, it seems that the CLI is stopping parsing the other arguments:
$ dagger call -m test --token=env:MY_TOKEN --name "World" call Hello, None!
dagger v0.11.1 (registry.dagger.io/engine) darwin/arm64
See above.
No response
The text was updated successfully, but these errors were encountered:
That's an interesting find, thanks for reporting! 馃
Sorry, something went wrong.
No branches or pull requests
What is the issue?
I have a module, where using credentials is optional, e.g.
When I call this module like this, I get a valid response:
However, when token is missing, it seems that the CLI is stopping parsing the other arguments:
Dagger version
dagger v0.11.1 (registry.dagger.io/engine) darwin/arm64
Steps to reproduce
See above.
Log output
No response
The text was updated successfully, but these errors were encountered: