{"id":13647710,"url":"https://github.com/TheOnlyMrCat/runscript","last_synced_at":"2025-04-22T02:32:38.825Z","repository":{"id":39829808,"uuid":"274268267","full_name":"TheOnlyMrCat/runscript","owner":"TheOnlyMrCat","description":"A tool to manage a project's build and run commands","archived":false,"fork":false,"pushed_at":"2023-03-18T23:30:21.000Z","size":1727,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T19:39:31.765Z","etag":null,"topics":["build-tool","runscript","script-manager"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheOnlyMrCat.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}},"created_at":"2020-06-23T00:05:58.000Z","updated_at":"2024-12-17T04:28:55.000Z","dependencies_parsed_at":"2024-01-14T10:14:41.077Z","dependency_job_id":"ab61cb42-362e-41ef-8e7e-169145d6280b","html_url":"https://github.com/TheOnlyMrCat/runscript","commit_stats":{"total_commits":238,"total_committers":1,"mean_commits":238.0,"dds":0.0,"last_synced_commit":"3d53d073c8af0ddf3cb83ec6e953f1fe4117f218"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOnlyMrCat%2Frunscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOnlyMrCat%2Frunscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOnlyMrCat%2Frunscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheOnlyMrCat%2Frunscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheOnlyMrCat","download_url":"https://codeload.github.com/TheOnlyMrCat/runscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250163776,"owners_count":21385310,"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":["build-tool","runscript","script-manager"],"created_at":"2024-08-02T01:03:43.941Z","updated_at":"2025-04-22T02:32:38.520Z","avatar_url":"https://github.com/TheOnlyMrCat.png","language":"Rust","readme":"# Runscript\n\nRunscript is a tool like `make` (or, perhaps, [`just`](https://github.com/casey/just)) which manages project-specific\ncommands. When you want to run your program, simply type `run`.\n\nFor an example of a useful runscript, see [the runfile for this repository](run).\n\n## Features\n\n- Does **not** use Makefile syntax, and instead uses a custom TOML-inspired syntax with no significant whitespace\n- Emulates a shell and executes commands directly, instead of invoking `sh`.\n- Supports most of the shell features you know and love (parsing adapted from [ipetkov/conch_parser](https://github.com/ipetkov/conch-parser))\n- Can invoke an external tool (not necessarily a shell!) to run a script, if the builtin shell proves inadequate.\n- Multiple 'phases' per target, so you can chose to build, run, or test a target. If those options aren't enough, you can name your phases whatever you want!\n- Imports targets from multiple files, meaning you can have a personal `.run` file alongside a source-controlled `run` file\n- Fancy output while running scripts, which is entirely configurable!\n\n### Still to do\n\n- A number of more advanced shell features, including:\n  - A few shell builtin commands (e.g. `exit`, `nohup`)\n  - Local variables (?)\n  - Arithmetic and a number of parameter substitutions\n  - Here-documents\n- Replace manual SIGHUP'ing with `setpgid`\n- Remove most sources of panicking (fuzz testing?)\n- Support Windows properly (?)\n\n### Non-goals\n\nDespite having `-c` and `-s` options for executing single commands and shell scripts, respectively, Runscript\nwon't emulate a POSIX shell perfectly. I'll try to make it useful enough for most use cases, but if you want a\nPOSIX shell, just use a POSIX shell. That being said, feel free to test the limitations of those two flags! I do have\nto be able to execute shell scripts to implement the `source` builtin.\n\n## How to install\n\n### AUR\n\nRunscript is on the AUR as `runscript-git`. Install it manually, or using your favourite AUR helper.\n\n```\nparu -S runscript-git\n```\n\n### Manually\n\n```sh\ngit clone https://git.sr.ht/~theonlymrcat/runscript\ncd runscript\ncargo install --release\n```\n\n## License\n\nLicensed under the Apache License, Version 2.0 (\u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e).\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheOnlyMrCat%2Frunscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheOnlyMrCat%2Frunscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheOnlyMrCat%2Frunscript/lists"}