{"id":24108393,"url":"https://github.com/soanvig/cli-file","last_synced_at":"2025-07-09T15:36:36.740Z","repository":{"id":45918356,"uuid":"395980232","full_name":"soanvig/cli-file","owner":"soanvig","description":"Tool for easy and programming language-agnostic command-line interfaces for executing commands.","archived":false,"fork":false,"pushed_at":"2021-11-29T21:20:42.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T19:05:16.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/soanvig.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":"2021-08-14T10:57:09.000Z","updated_at":"2021-11-29T21:20:45.000Z","dependencies_parsed_at":"2022-09-15T17:21:17.937Z","dependency_job_id":null,"html_url":"https://github.com/soanvig/cli-file","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soanvig/cli-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soanvig%2Fcli-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soanvig%2Fcli-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soanvig%2Fcli-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soanvig%2Fcli-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soanvig","download_url":"https://codeload.github.com/soanvig/cli-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soanvig%2Fcli-file/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264486522,"owners_count":23616067,"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":"2025-01-10T23:37:36.415Z","updated_at":"2025-07-09T15:36:36.413Z","avatar_url":"https://github.com/soanvig.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-file\n\n*Alpha version, API subjected to change*\n\nTool for easy and programming language-agnostic command-line interfaces for executing commands.\nIt's built to provide accessible and extensible interface to building projects, running tests,\nmanaging deployments and so on, without relying on poor tools like `npm scripts`.\n\nIt offers domain-specific language - configuration file containing lines with commands like:\n\n```\nmyEcho :: value = \"World\" -\u003e echo Hello $value\n```\n\nthat can be executed using\n\n`cli-file myEcho` resulting in `Hello World`\n\nor\n\n`cli-file myEcho John` resulting in `Hello John`\n\nAny shell command can be called that way.\n\n## How to use\n\nBy default `cli-file` looks for a file `commands.cli` in current directory.\nThat is the file containing configured commands.\n\nSyntax:\n\n1. Command without any arguments: `myEcho -\u003e echo Hello World`\n2. Command with required argument: `myEcho :: value -\u003e echo Hello $value`\n3. Command with optional argument: `myEcho :: value = \"World\" -\u003e echo Hello $value`\n4. Command with multiple arguments: `myEcho :: first, second = \"World\" -\u003e echo $first $second`\n5. Comment (only on newline): `# This is comment`\n\nAt this point `cli-file` doesn't support default values longer than one word (on TODO list).\n\n`cli-file` substitutes only known `$param` names, therefore if there is any conflict between a parameter name,\nand shell variable, just use different name for the parameter.\n\n### Switches\n\n1. `-c \u003cfile location\u003e` or `--commands \u003cfile location\u003e` - change default commands file location (e.g. `cli-file -c /tmp/commands myEcho John`)\n2. `-h` or `--help` - (needs to be first) show help\n3. `-v` or `--version` - (needs to be first) print version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoanvig%2Fcli-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoanvig%2Fcli-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoanvig%2Fcli-file/lists"}