{"id":24394432,"url":"https://github.com/layerdynamics/stega","last_synced_at":"2025-12-27T13:08:44.672Z","repository":{"id":272047583,"uuid":"915358053","full_name":"LayerDynamics/stega","owner":"LayerDynamics","description":"a modern CLI framework built for Deno that enables developers to create sophisticated command-line applications with features like workflow automation, template generation, and service management. It combines type safety with powerful abstractions to streamline CLI development.","archived":false,"fork":false,"pushed_at":"2025-01-18T18:56:54.000Z","size":39278,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T19:30:05.416Z","etag":null,"topics":["automation","cli","command-line","deno","framework"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LayerDynamics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-11T16:33:04.000Z","updated_at":"2025-01-18T18:56:56.000Z","dependencies_parsed_at":"2025-01-11T18:39:09.562Z","dependency_job_id":null,"html_url":"https://github.com/LayerDynamics/stega","commit_stats":null,"previous_names":["layerdynamics/stega"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fstega","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fstega/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fstega/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fstega/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LayerDynamics","download_url":"https://codeload.github.com/LayerDynamics/stega/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243325066,"owners_count":20273213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cli","command-line","deno","framework"],"created_at":"2025-01-19T19:24:39.567Z","updated_at":"2025-12-27T13:08:44.639Z","avatar_url":"https://github.com/LayerDynamics.png","language":"TypeScript","readme":"# Stega: Advanced CLI Framework for Deno\n\n\u003e A powerful, type-safe CLI framework for Deno featuring comprehensive command management, workflow automation, and plugin architecture.\n\n[![CI Status](https://github.com/layerdynamics/stega/workflows/CI/badge.svg)](https://github.com/layerdynamics/stega/actions)\n[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://github.com/layerdynamics/stega/wiki)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\n## Overview\n\nStega is a modern CLI framework built for Deno that enables developers to create sophisticated command-line applications with features like workflow automation, template generation, and service management. It combines type safety with powerful abstractions to streamline CLI development.\n\n### Key Features\n\n- **Type-Safe Command System**: Declarative command definitions with TypeScript support\n- **Advanced Workflow Automation**: Define and execute complex task sequences\n- **Template Engine**: Generate code and content using customizable templates\n- **Service Management**: Control and monitor long-running services\n- **HTTP Client**: Make HTTP requests directly from the command line\n- **Plugin Architecture**: Extend functionality through a modular plugin system\n- **Internationalization**: Built-in i18n support for multiple languages\n- **Configuration Management**: Flexible configuration through files and environment variables\n\n## Installation\n\n```bash\n# Install from deno.land/x\ndeno install --allow-all -n stega https://deno.land/x/stega/mod.ts\n\n# Or clone and install locally\ngit clone https://github.com/layerdynamics/stega.git\ncd stega\ndeno install --allow-all -n stega mod.ts\n```\n\n## Quick Start\n\n1. Create a new CLI application:\n\n```typescript\n// main.ts\nimport { CLI, Command } from \"https://deno.land/x/stega/mod.ts\";\n\nconst cli = new CLI();\n\n// Define a command\nconst greetCommand: Command = {\n    name: \"greet\",\n    description: \"Greet a user\",\n    options: [\n        {\n            name: \"name\",\n            alias: \"n\",\n            type: \"string\",\n            required: true,\n            description: \"Name to greet\"\n        },\n        {\n            name: \"excited\",\n            alias: \"e\",\n            type: \"boolean\",\n            default: false,\n            description: \"Add excitement\"\n        }\n    ],\n    action: (args) =\u003e {\n        const name = args.flags.name;\n        const excited = args.flags.excited;\n        console.log(`Hello, ${name}${excited ? \"!\" : \".\"}`);\n    }\n};\n\n// Register and run\ncli.register(greetCommand);\nawait cli.run();\n```\n\n2. Run your CLI:\n\n```bash\ndeno run --allow-all main.ts greet --name=\"World\" --excited\n```\n\n## Core Features\n\n### Command Management\n\nDefine commands with rich metadata and validation:\n\n```typescript\nconst command: Command = {\n    name: \"deploy\",\n    description: \"Deploy the application\",\n    category: \"operations\",\n    options: [\n        {\n            name: \"environment\",\n            type: \"string\",\n            required: true,\n            description: \"Target environment\"\n        }\n    ],\n    action: async (args) =\u003e {\n        // Command implementation\n    }\n};\n```\n\n### Workflow Automation\n\nCreate complex automation workflows:\n\n```json\n{\n    \"name\": \"deploy-pipeline\",\n    \"steps\": [\n        {\n            \"name\": \"build\",\n            \"command\": \"build --target=production\"\n        },\n        {\n            \"name\": \"test\",\n            \"command\": \"test --coverage\",\n            \"parallel\": true\n        },\n        {\n            \"name\": \"deploy\",\n            \"command\": \"deploy --env=prod\",\n            \"condition\": \"process.env.BRANCH === 'main'\"\n        }\n    ]\n}\n```\n\n### Template Generation\n\nGenerate code and content using templates:\n\n```typescript\nawait cli.runCommand([\n    \"template\",\n    \"generate\",\n    \"--template=component\",\n    \"--output=src/components/Button.tsx\",\n    \"--variables\",\n    JSON.stringify({\n        name: \"Button\",\n        props: [\"label\", \"onClick\"]\n    })\n]);\n```\n\n### Service Management\n\nControl and monitor services:\n\n```bash\n# Start a service\nstega service start --name=api --config=services/api.json\n\n# Monitor service status\nstega service status --name=api --format=json\n\n# View service logs\nstega service logs --name=api --follow\n```\n\n### HTTP Client\n\nMake HTTP requests:\n\n```bash\nstega http --method=POST \\\n           --url=https://api.example.com/data \\\n           --data='{\"key\": \"value\"}' \\\n           --headers=\"Content-Type:application/json\"\n```\n\n## Plugin System\n\nExtend functionality through plugins:\n\n```typescript\nconst plugin: Plugin = {\n    metadata: {\n        name: \"custom-plugin\",\n        version: \"1.0.0\"\n    },\n    init: (cli) =\u003e {\n        cli.register({\n            name: \"custom-command\",\n            action: () =\u003e {\n                console.log(\"Custom command executed\");\n            }\n        });\n    }\n};\n\nexport default plugin;\n```\n\n## Configuration\n\nCreate a `stega.config.json` for project-wide settings:\n\n```json\n{\n    \"plugins\": [\n        \"stega-plugin-typescript\",\n        \"stega-plugin-docker\"\n    ],\n    \"commands\": {\n        \"build\": {\n            \"target\": \"es2020\",\n            \"outDir\": \"dist\"\n        }\n    },\n    \"i18n\": {\n        \"defaultLocale\": \"en\",\n        \"locales\": [\"en\", \"es\", \"fr\"]\n    }\n}\n```\n\n## Development\n\n```bash\n# Clone repository\ngit clone https://github.com/layerdynamics/stega.git\ncd stega\n\n# Install dependencies\ndeno cache mod.ts\n\n# Run tests\ndeno task test\n\n# Build\ndeno task build\n\n# Format code\ndeno task fmt\n```\n\n## Documentation\n\n- [User Guide](docs/user-guide.md)\n- [API Reference](docs/api.md)\n- [Plugin Development](docs/plugins.md)\n- [Command Reference](docs/commands.md)\n- [Advanced Features](docs/advanced.md)\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\n- [GitHub Issues](https://github.com/layerdynamics/stega/issues)\n- [Documentation](https://github.com/layerdynamics/stega/wiki)\n- [Discord Community](https://discord.gg/stega)\n\n## Acknowledgments\n\nSpecial thanks to all our contributors and the Deno community.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerdynamics%2Fstega","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayerdynamics%2Fstega","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerdynamics%2Fstega/lists"}