Skip to content

For generated Python pyharp interfaces, add provenance #121

Description

@Poofjunior

When we run the generator to create a python pyharp interface, we get:

# This file was automatically generated and should not be edited directly.
# To make changes, edit the device metadata and regenerate the interface.

It would be more useful to add information that includes:

  • the CLI command used to generate it
  • a link to the utility

Example:

# This file was automatically generated with
#     harp.toolkit.something device.yml --some-flags
# using the generator at:
#     https://github.com/harp-tech/generators/SOMETHING
# Do not edit this file directly. To make changes, edit the device.yml
# and re-run the command above.

For folks new to the ecosystem, they may encounter these generated files in an examples folder for a harp device without any context. It would be useful to point them back to how it was generated so that they can make changes as needed, or go on to build their own devices.

Activity

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

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