Skip to content

Include humanize_list function as a utility  #183

@lengau

Description

@lengau

What needs to get done

  1. Copy this function and its relevant tests to craft-cli: https://github.com/canonical/craft-parts/blob/main/craft_parts/utils/formatting_utils.py
  2. Make a craft-cli release
  3. Update craft apps to reference this function instead of their own instances of it.
  4. Make comments both here and in the craft-parts implementation that the function exists in the other location so we can copy bug fixes if needed. (No functional changes in craft-parts)

Why it needs to get done

Reduced copy/pasting of code for improved maintainability

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