Skip to content

feat: add --verbose flag to import command for detailed upload feedback #367

@A-d-i-t-y

Description

@A-d-i-t-y

Reason/Context

Why we need this improvement:
The import command currently gives no feedback during execution.
Users cannot tell if the upload is in progress or why it silently failed.

How this will help:
A --verbose flag will print artifact path, server response status,
and error details — making it much easier to debug failed imports
in CI/CD pipelines without extra tooling.

Motivation:
This aligns with the LFX Mentorship goal of improving the developer
experience for Microcks CLI users.

Description

Problem

The microcks import command gives no detailed output during execution.
Users cannot tell whether the upload is in progress, what the server
responded, or why an import silently failed.

Proposed Solution

Add a --verbose flag to the import command that prints:

  • The artifact path being uploaded
  • The server response status
  • Any error details from the server response body

Why This Matters

This improves the developer experience for CI/CD pipelines where
silent failures are hard to debug without re-running with extra tooling.

Implementation ideas

  • cmd/import.go: add --verbose flag definition
  • pkg/connectors/microcks_client.go: log request/response details
    when verbose mode is enabled
  • documentation/cmd/import.md: document the new flag with example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions