Last active
April 25, 2022 04:41
-
-
Save nektro/64c7da67a00d8b94091d754dd2cf1aa9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const extras = @import("extras"); | |
pub fn amInside() !bool { | |
return try extras.doesFileExist(null, "/.dockerenv"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: wdpj695kgredmqq5smtkj5t8u5uert9mxm2rvd75 | |
name: docker | |
main: docker.zig | |
license: MIT | |
dependencies: | |
- src: git https://github.com/nektro/zig-extras |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment