Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdesp73/toho
A cli tool to convert a multi-file c library to a header-only one
https://github.com/kdesp73/toho
cli cli-tool file-generator golang header-only header-only-library
Last synced: about 1 month ago
JSON representation
A cli tool to convert a multi-file c library to a header-only one
- Host: GitHub
- URL: https://github.com/kdesp73/toho
- Owner: KDesp73
- License: mit
- Created: 2024-08-18T21:01:49.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T12:46:44.000Z (4 months ago)
- Last Synced: 2024-08-22T14:19:08.494Z (4 months ago)
- Topics: cli, cli-tool, file-generator, golang, header-only, header-only-library
- Language: Go
- Homepage:
- Size: 1.44 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# toho
Stands for `To` `H`eader `O`nly
A cli tool to convert a multi-file c library to a header only one
> [!WARNING]
> This tool currently works for the specific way
> I write C libraries. If you are using other conventions
> Some things might not work correctly.
> Use at your own risk## Building
```bash
go build ./cmd/toho-cli
```## Usage
```bash
$ toho
```## Specify order of inclusion
To specify the order of inclusion of the header files, you can add a `// {index}` comment in them
So for including a file first add the `// {0}` comment in it
## LICENSE
[MIT](./LICENSE)