{"id":17204575,"url":"https://github.com/timrots/appmock","last_synced_at":"2025-03-25T09:43:28.104Z","repository":{"id":57572442,"uuid":"347495843","full_name":"TimRots/appmock","owner":"TimRots","description":"Easy CLI mocking","archived":false,"fork":false,"pushed_at":"2021-03-20T17:56:04.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T09:12:44.142Z","etag":null,"topics":["cli","go","mock"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimRots.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}},"created_at":"2021-03-13T22:48:26.000Z","updated_at":"2021-03-20T17:56:06.000Z","dependencies_parsed_at":"2022-08-24T06:00:44.235Z","dependency_job_id":null,"html_url":"https://github.com/TimRots/appmock","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/TimRots%2Fappmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimRots%2Fappmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimRots%2Fappmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimRots%2Fappmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimRots","download_url":"https://codeload.github.com/TimRots/appmock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245437236,"owners_count":20615235,"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":["cli","go","mock"],"created_at":"2024-10-15T02:22:27.533Z","updated_at":"2025-03-25T09:43:28.085Z","avatar_url":"https://github.com/TimRots.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# appmock\n---\n\nCLI mocking ala busybox\n\n## create a config for app foo\n```\nmkdir -p ~/.appmock\ncat \u003c\u003c EOMOCK \u003e ~/.appmock/foo.yml\n---\nflags:\nstdout: |-\n  foo\nstderr: |-\n  bar\nexit-status: 1\nEOMOCK\n```\n\n## test the mock\n```\nln -s ~/bin/appmock foo\n./foo \u0026\u0026 echo $?\nfoo\nbar\n1\n```\n\n## how to build\n```\n# create bin directory in homedir and add it to $PATH\nmkdir -p ~/bin\nexport PATH=\"$HOME/bin:$PATH\"\n\n# clone repo\ngit clone https://github.com/TimRots/appmock.git \u0026\u0026 cd appmock\n\n# get dependencies\ngo get -t -v -d -u ./...\n\n# runnning make will build the binary and place it in ~/bin\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimrots%2Fappmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimrots%2Fappmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimrots%2Fappmock/lists"}