212875ed0d
- .claude/agents/fn-orquestador/SKILL.md - .claude/commands/fn_claude.md - .claude/rules/INDEX.md - .claude/rules/cpp_apps.md - .claude/rules/ids_naming.md - CHANGELOG.md - apps/dag_engine/README.md - apps/dag_engine/api.go - apps/dag_engine/dags_migrated/example.yaml - apps/dag_engine/dags_migrated/example_lineage_tracking.yaml - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.2 KiB
2.2 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fn_sync_with_pass | pipeline | bash | pipelines | 1.0.0 | impure | fn_sync_with_pass [status|locations|<args>...] | Wrapper de fn sync que lee credenciales del password-store pass y exporta FN_REGISTRY_API y REGISTRY_API_TOKEN antes de invocar el CLI. Evita persistir secretos en ~/.zshrc. |
|
|
false | error_go_core |
|
Mismo output que ./fn sync (stdin/stdout/stderr heredados). Exit code del subproceso fn sync. | false | bash/functions/pipelines/fn_sync_with_pass.sh |
Ejemplo
# Sync simple (push+pull completo)
./fn run fn_sync_with_pass_bash_pipelines
# Ver estado local: PC, API, conteos
./fn run fn_sync_with_pass_bash_pipelines status
# Mapa de ubicaciones cross-PC
./fn run fn_sync_with_pass_bash_pipelines locations
Cuando usarla
Cuando necesites ejecutar fn sync sin tener las credenciales exportadas en el entorno. Sustituye al bloque de export FN_REGISTRY_API=... que de otro modo habria que poner en ~/.zshrc.
Gotchas
- Si GPG no tiene la clave desbloqueada,
pass showabre el prompt del agente gpg. Dejarlo pasar — no capturar stderr para no interferir con el pinentry. - Requiere que el password-store este inicializado (
pass init). Si no existe,pass showfalla con error claro. FN_REGISTRY_ROOTdebe apuntar a la raiz del registry donde vive el binario./fn. Si no esta seteado, se resuelve viagit rev-parse --show-toplevel.- Los tres entries de pass deben tener el valor en la linea 1 (convencion estandar de pass). Metadata adicional en lineas siguientes es ignorada.