Export entity YAMLs to a local directory structure

Abierto
#556 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
go
Área
cli

Línea de trabajo

Start with docs/verbs.md and related issues #362 and #415 to understand the CLI command conventions and existing entity YAML support. The issue leaves command shape, scope selection, default nouns, and secret handling open, so agree on those before implementation. Done means a deterministic directory export with one YAML file per supported entity, while unsupported nouns are skipped and reported.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

Problem

There is no way to dump the entities of a project to disk. Recreating a project in another account today means fetching and re-creating each entity by hand.

Proposed

A command that exports entity YAMLs for an account/org/project into a local directory tree, one file per entity, grouped by scope and noun, e.g.:

<dir>/<org>/<project>/<noun>/<identifier>.yaml
  • Reuses the per-noun entity YAML from get <noun> --yaml (#415), so every file can be fed back through create <noun> -f.
  • Nouns without a YAML representation are skipped and reported.
  • Layout is deterministic, so the directory can be diffed, committed, or used as input to a later import into a new account.

Open questions

  • Command shape (export is not a current verb; see docs/verbs.md).
  • Scope selection and which nouns are included by default.
  • Handling of secrets and other non-exportable entities.
  • Import side: separate follow-up that reads this directory to create entities in a target account.

Related: #362 (migrate project workflow), #415 (entity YAML via --yaml).

Lenguaje dominante
Go
Estrellas
29
Forks
24
Merge medio
1 d 9 h
PR fusionados (30 d)
111

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de harness/cli

Todos los issues de harness/cli

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.