Files
fn_registry/functions/infra/ssh_config_remove_entry.md
T
egutierrez ab7317b0c0 feat: add Go SSH config management functions and type
7 funciones Go del dominio infra para gestion programatica de ~/.ssh/config:
ssh_config_parse (parser de bloques Host/Match), ssh_config_read (lectura del
archivo), ssh_config_find (busqueda por host), ssh_config_add_entry y
ssh_config_remove_entry (CRUD), ssh_config_render (serializacion a texto),
ssh_config_write (escritura atomica). Incluye tipo SshConfigEntry (product type)
y tests unitarios del parser.
2026-04-12 13:54:43 +02:00

984 B

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
ssh_config_remove_entry function go infra 1.0.0 pure func SSHConfigRemoveEntry(entries []SSHConfigEntry, alias string) ([]SSHConfigEntry, error) Elimina un entry por alias de la lista. Error si el alias no existe.
ssh
config
remove
remote
ssh_config_entry_go_infra
false
fmt
name desc
entries lista actual de SSHConfigEntry
name desc
alias alias del host a eliminar
nueva lista sin el entry eliminado true
elimina entry existente
error si alias no existe
functions/infra/ssh_config_parse_test.go functions/infra/ssh_config_remove_entry.go

Ejemplo

updated, err := SSHConfigRemoveEntry(entries, "old-server")

Notas

No muta el slice original — crea una copia nueva sin el entry eliminado.