{"id":13564614,"url":"https://github.com/singe/tidcli","last_synced_at":"2025-05-09T02:30:29.370Z","repository":{"id":242032964,"uuid":"808516715","full_name":"singe/tidcli","owner":"singe","description":"A simple touchID prompt'er for use in shell scripts.","archived":false,"fork":false,"pushed_at":"2024-06-18T12:52:16.000Z","size":19,"stargazers_count":95,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T21:35:54.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/singe.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":"2024-05-31T08:29:14.000Z","updated_at":"2025-03-26T04:50:11.000Z","dependencies_parsed_at":"2024-05-31T09:21:12.426Z","dependency_job_id":"a8623be0-f422-46a0-afaf-b4f1dbd30335","html_url":"https://github.com/singe/tidcli","commit_stats":null,"previous_names":["singe/tidcli"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singe%2Ftidcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singe%2Ftidcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singe%2Ftidcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singe%2Ftidcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singe","download_url":"https://codeload.github.com/singe/tidcli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253177582,"owners_count":21866362,"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-08-01T13:01:33.671Z","updated_at":"2025-05-09T02:30:29.337Z","avatar_url":"https://github.com/singe.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# Outrageously simple touch ID command line prompter\n\nTouch ID Command Line Interface (tidcli) simply pops a Touch ID prompt.\n\nIt returns an exit code of 0 on success and 1 on failure.\n\nYou can use this to embed additional authentication steps into your shell script or the like.\n\n\u003cimg width=\"372\" alt=\"image\" src=\"https://github.com/singe/tidcli/assets/1150684/999a9a41-75d6-4366-b97b-ee6b425e1c1e\"\u003e\n\n# Usage\n\n`tidcli [optional prompt context]`\n\nOptional custom prompt information can be passed as the first argument. This is limited to 100 characters.\n\nAn example of using it in a bash shell script to exit if there is an authentication failure is:\n\n```\ntidcli \"EXAMPLE SCRIPT\"\nif [[ \"$?\" -ne 0 ]]; then\n  exit 1\nfi\n```\n\n# Installing\n\nDownload the appropriate binary from the releases page.\n\n# Building\n\nBuild a release binary with swift by running:\n\n`swift build -c release`\n\nThe resulting binary will be in the `.build/release` directory as `tidcli`.\n\n# Notes\n\n## Password fallback not allowed\n\nThe Touch ID prompt will contain a \"Use Password\" button, but only biometric authentication is allowed, so clicking it will result in an authentication failure. If you wanted to change this you could use `.deviceOwnerAuthentication` instead of `.deviceOwnerAuthenticationWithBiometrics`.\n\n## Output on standard error\n\nSuccess and failure messages are output to standard error.\n\n# Sandbox Execution\n\nA macOS sandbox profile is included if you're so inclined. You can execute it with `sandbox-exec` and just need to pass the full path of where the binary is located. For example:\n\n`sandbox-exec -D_PWD=\"$PWD/tidcli\" -f tidcli.sb tidcli`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinge%2Ftidcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinge%2Ftidcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinge%2Ftidcli/lists"}