Files
fn_registry/bash/functions/shell/create_project_structure.md
T
egutierrez 8f45b40528 feat: add bash shell utility functions
12 funciones Bash del dominio shell: utilidades de scripting (bash_log,
bash_colors, bash_check_deps, bash_confirm, bash_handle_error, bash_safe_run),
manipulacion de texto (convert_text_case), estructura de proyectos
(create_project_structure), y operaciones git (git_clean_branches,
git_log_visual, git_push_all_remotes, git_repo_status). Cada una con su
.sh y .md de frontmatter.
2026-04-12 13:54:15 +02:00

1.6 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, source_repo, source_license, source_file
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 source_repo source_license source_file
create_project_structure function bash shell 1.0.0 impure create_project_structure(project_name: string) -> void Crea la estructura de directorios estándar de un proyecto funcional en el directorio indicado: database (attachments, data, models), dist (desktop/mobile/docker), docker, docs, frontend, logs, notebooks, robots, scripts, src (application/core/middleware con tests y tipos).
bash
project
structure
scaffold
init
false error_go_core
name desc
project_name nombre del proyecto o ruta destino donde crear la estructura (requerido)
crea los directorios a stdout con conteo final; exit code 1 si no se proporciona nombre false
bash/functions/shell/create_project_structure.sh https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/egutierrez/DevLauncher.git MIT scripts/linux/inicializar_repos/functional_structure.sh

Ejemplo

source bash/functions/shell/create_project_structure.sh

# Crear estructura en un directorio nuevo
create_project_structure mi-proyecto

# Usar una ruta
create_project_structure /home/user/projects/nuevo-proyecto

Notas

Crea 68 directorios organizados en la estructura funcional de DevLauncher. La estructura separa claramente application (orquestación), core (lógica pura) y middleware (efectos/I/O) bajo src/. No crea archivos, solo directorios. Idempotente: si los directorios ya existen, no falla.