Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

rjkroege/tg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update

Fully working version has moved to ~rjk/tg - Zig program to read/write macos finder tags - sourcehut git.

I decided to learn Home ⚡ Zig Programming Language and eschew Rust. I needed a Zig starter project. I wanted a way to read/write the metadata tags on files on MacOS. Hence tg: a simple program to tag.

The purpose of this program is largely pedagogical. (I.e. I don't really know what I'm doing in this code.) With it I learned:

  • how to add a Zig package to an existing project by editing the .zon and build.zig
  • how to use a C API from Zig
  • how to wrap (maybe incorrectly) a C system call
  • some thoughts on memory management and the passing of allocators.
  • running tests not in the "root" source
  • build.zig can also be debugged with printfs.

Status

Shows the metadata keys on a list of files.

About

Zig learning project to read MacOS extended file attributes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages