Skip to content

Add hierarchical view of generate_manifest #109

@jameshiebert

Description

@jameshiebert

The generate_manifest script is a good step in helping us to convert the database index that modeldata manages to a deployment strategy. I.e. how to we create a deployable container that has all of the filesystem resources that the modelmeta database indexes.

One way that would make this better would be to make the output more concise; narrowing down the long list of files to a short list of directories that encapsulate the files.

A filesystem is generally a hierarchical tree, so perhaps we could add a level option to generate_manifest that outputs a list of directories no greater than n levels deep than the given parameter that covers all of the files.

Alternatively, the Linux tree command has a -L level option, so perhaps we could provide guidance as to how to pipe the output of generate_manifest to tree (or other Linux shell commands) to achieve the same result without writing more code.

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