{"id":21878354,"url":"https://github.com/pepabo/facade","last_synced_at":"2025-04-15T03:05:22.274Z","repository":{"id":28698770,"uuid":"32219099","full_name":"pepabo/facade","owner":"pepabo","description":"A utility that provides git-like sub command feature with one line of code","archived":false,"fork":false,"pushed_at":"2015-10-15T01:56:34.000Z","size":159,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":205,"default_branch":"master","last_synced_at":"2025-04-15T03:05:17.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pepabo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-14T15:45:03.000Z","updated_at":"2017-10-23T03:29:36.000Z","dependencies_parsed_at":"2022-08-29T01:11:26.136Z","dependency_job_id":null,"html_url":"https://github.com/pepabo/facade","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Ffacade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Ffacade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Ffacade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Ffacade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepabo","download_url":"https://codeload.github.com/pepabo/facade/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997085,"owners_count":21195799,"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":[],"created_at":"2024-11-28T08:12:23.749Z","updated_at":"2025-04-15T03:05:22.257Z","avatar_url":"https://github.com/pepabo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# façade\n\nThis library adds a git-like sub command feature into your command.\n\n## Usage\n\nJust call `facade.Run()` in your main file like below:\n\n```go\npackage main\n\nimport (\n\t\"github.com/pepabo/facade\"\n)\n\nfunc main() {\n\tf := \u0026facade.Facade{}\n\n\t// If `Env` set, the key-values will be injected into the environment\n\t// variables which affects sub command.\n\tf.Env = map[string]string{\n\t\t\"FACADE_FOO\": \"123\",\n\t\t\"FACADE_BAR\": \"Bar Value\",\n\t}\n\tf.Run()\n}\n```\n\n## Sub Command\n\n1. If you name your command `your-command` and run it with `your-command foo bar baz`, façade regards `foo` as sub command and the rest of the arguments as ones for the sub command.\n2. Then execute `your-command-foo` with arguments `bar baz`.\n\n## Builtin Commands\n\nfaçade provides some builtin commands.\n\n### `help`\n\nShows usage of the command.\n\n### `list`\n\nLists up all sub commands.\n\n## Logging\n\nfaçade takes over STDOUT and STDERR of sub command and emits outputs from them in some pretty manner.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Ffacade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepabo%2Ffacade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Ffacade/lists"}