{"id":51318070,"url":"https://github.com/thisago/checkif","last_synced_at":"2026-07-01T09:31:53.682Z","repository":{"id":50193472,"uuid":"518471530","full_name":"thisago/checkif","owner":"thisago","description":"A CLI tool to check files, dirs and commands","archived":false,"fork":false,"pushed_at":"2022-09-07T15:28:33.000Z","size":106,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-02T04:17:51.046Z","etag":null,"topics":["check","cli","cross-platform","linux","nim","test","tool","windows"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/thisago.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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":"2022-07-27T13:33:33.000Z","updated_at":"2024-05-02T04:17:51.047Z","dependencies_parsed_at":"2023-01-17T23:01:08.990Z","dependency_job_id":null,"html_url":"https://github.com/thisago/checkif","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/thisago/checkif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fcheckif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fcheckif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fcheckif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fcheckif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisago","download_url":"https://codeload.github.com/thisago/checkif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fcheckif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35001648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["check","cli","cross-platform","linux","nim","test","tool","windows"],"created_at":"2026-07-01T09:31:51.087Z","updated_at":"2026-07-01T09:31:53.677Z","avatar_url":"https://github.com/thisago.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# checkif\n\nA easy to use CLI tool that allows you make advanced checking (specially on Windows)\n\n## Why\n\nThe windows CMD (at least Win 7) is very inconsistent:\n\n- Commands that runs if previous was success or not (`a \u0026\u0026 b || c`) works just in a batch file\n- Cannot check inline in a CMD\n  - If text exists in /is the content\n  - File/dir exists\n  - Check multiple files and expect at least some succeeds\n\n## Help\n\n### Base\n\n```\nUsage:\n  checkif {SUBCMD}  [sub-command options \u0026 parameters]\nwhere {SUBCMD} is one of:\n  help     print comprehensive or per-cmd help\n  file     Check if expression is meet in a file\n  dir      Check if expression is meet in a directory\n  command  Run the `then` if `cmd` runs ok, else runs `else`\n\ncheckif {-h|--help} or with no args at all prints this message.\ncheckif --help-syntax gives general cligen syntax help.\nRun \"checkif {help SUBCMD|SUBCMD --help}\" to see help for just SUBCMD.\nRun \"checkif help\" to get *comprehensive* help.\n```\n\n### File\n\n```\nUsage:\n  file [REQUIRED,optional-params] The files to check, can be any quantity\nCheck if expression is meet in a file\n\nIf `then` or `else` was provided, the return code will be of the command\nOptions:\n  -h, --help                                 print this cligen-erated help\n  --help-syntax                              advanced: prepend,plurals,..\n  -c=, --condition=      FileCond  REQUIRED  The file check condition. Can be one of: exists or dataHas or dataIs or dataNum\n  -n, --invert           bool      false     Invert result\n  -m=, --min=            int       0         Minimum succeeded checks\n  -s=, --str=            string    \"\"        The text to be searched\n  -i, --caseInsensitive  bool      false     Ignore uppercase and lowercase\n  -t=, --then=           string    \"\"        The command to be run on success\n  -e=, --else=           string    \"\"        The command to be run on error\n  -l, --headless         bool      false     If some error occur in `commands` it will stop\n  --moreThan=            float     0.0       Configure the `dataNum` maximum acceptable number (default: maximum number)\n  --lessThan=            float     inf       Configure the `dataNum` minimum acceptable number (default: 0)\n  --stripNum             bool      false     Removes everything that isn't digits from file data\n```\n\n### Dir\n\n```\nUsage:\n  dir [REQUIRED,optional-params] The files to check, can be any quantity\nCheck if expression is meet in a directory\n\nIf `then` or `else` was provided, the return code will be of the command\nOptions:\n  -h, --help                            print this cligen-erated help\n  --help-syntax                         advanced: prepend,plurals,..\n  -c=, --condition=  DirCond  REQUIRED  The dir check condition. Can be one of: exists\n  -n, --invert       bool     false     Invert result\n  -m=, --min=        int      0         Minimum succeeded checks\n  -t=, --then=       string   \"\"        The command to be run on success\n  -e=, --else=       string   \"\"        The command to be run on error\n  --headless         bool     false     If some error occur in `commands` it will stop\n```\n\n### Command\n\n```\nUsage:\n  command [optional-params] [commands: string...]\nRun the `then` if `cmd` runs ok, else runs `else`\nOptions:\n  -h, --help                        print this cligen-erated help\n  --help-syntax                     advanced: prepend,plurals,..\n  -t=, --then=       string  \"\"     The command to be run on success\n  -e=, --else=       string  \"\"     The command to be run on error\n  -s, --stopOnError  bool    true   If some error occur in `commands` it will stop\n  --headless         bool    false  If some error occur in `commands` it will stop\n```\n\n## TODO\n\n- [ ] Add info to readme\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Fcheckif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisago%2Fcheckif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Fcheckif/lists"}