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

Fix duration in cli.create #86

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Conversation

Marenz
Copy link
Contributor

@Marenz Marenz commented Sep 12, 2024

  • Fix duration in cli client.create
  • Cli: Echo URL used for requests on stderr

Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
@Marenz Marenz requested review from a team as code owners September 12, 2024 12:53
@github-actions github-actions bot added part:cli Affects the command-line interface part:dispatcher labels Sep 12, 2024
@Marenz Marenz added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Sep 12, 2024
@Marenz
Copy link
Contributor Author

Marenz commented Sep 12, 2024

no release notes as we already mention the duration fixes and there was no new release

Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
@Marenz Marenz added this pull request to the merge queue Sep 12, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit 24a8e3a Sep 12, 2024
14 checks passed
@Marenz Marenz deleted the duration-fix branch September 12, 2024 13:03
@@ -58,6 +58,8 @@ async def cli(ctx: click.Context, url: str, key: str) -> None:
if ctx.obj is None:
ctx.obj = {}

click.echo(f"Using API URL: {url}", err=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a minor suggestion for the future: it might make sense to have some sort of --verbose or --debug flag to enable this, it seems a bit too verbose for the default case. You can even use the logging system to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd:skip-release-notes It is not necessary to update release notes for this PR part:cli Affects the command-line interface part:dispatcher
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants