Skip to content

Externalize hook script(s) in source with include_str! macro #49

@calebcartwright

Description

@calebcartwright

The git hook script is currently defined inline in a Rust file, but it would be a bit easier to view/manage/etc. if we extract it into a separate .sh file and use include_str!(...) to pull the contents in at compile time. Plus this would also let us run tools like ShellCheck against the scripts

https://doc.rust-lang.org/std/macro.include_str.html

Metadata

Metadata

Labels

doneWork on the Issue or PR is completedgood first issueGood for newcomers

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions