All Projects → ChimeHQ → ProcessEnv

ChimeHQ / ProcessEnv

Licence: BSD-3-Clause license
Capture the shell environment of a Foundation app

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to ProcessEnv

Objcxx
Stars: ✭ 54 (+237.5%)
Mutual labels:  foundation, cocoa
Rearrange
Collection of utilities for interacting with NSRange and NSTextRange
Stars: ✭ 28 (+75%)
Mutual labels:  foundation, cocoa
WebPKit
A framework that extends a variety of Cocoa APIs with capabilities for encoding and decoding WebP files for all of Apple's platforms.
Stars: ✭ 29 (+81.25%)
Mutual labels:  cocoa, appkit
TextViewPlus
Collection of useful extensions when working with NSTextView
Stars: ✭ 28 (+75%)
Mutual labels:  cocoa, appkit
OutlineViewDiffableDataSource
Stop looking for NSOutlineViewDiffableDataSource, it’s here 👌
Stars: ✭ 96 (+500%)
Mutual labels:  cocoa, appkit
Fruity
Rusty bindings for Apple libraries
Stars: ✭ 72 (+350%)
Mutual labels:  foundation, cocoa
XcoatOfPaint
Replace your Xcode icon with colorful variants
Stars: ✭ 131 (+718.75%)
Mutual labels:  cocoa, appkit
react-native-macos
Fork of https://github.com/ptmt/react-native-macos with more features
Stars: ✭ 22 (+37.5%)
Mutual labels:  cocoa, appkit
OperationPlus
NSOperation's missing pieces
Stars: ✭ 119 (+643.75%)
Mutual labels:  foundation, cocoa
LSPKit
Language Server Protocol (LSP) implementation for Cocoa ☕️
Stars: ✭ 33 (+106.25%)
Mutual labels:  cocoa, appkit
tb-grid
tb-grid is a super simple and lightweight 12 column responsive grid system utilizing css grid.
Stars: ✭ 19 (+18.75%)
Mutual labels:  foundation
DSFFloatLabelledTextControl
A macOS Cocoa single-line NSTextField/NSSecureTextField that implements the Float Label Pattern.
Stars: ✭ 21 (+31.25%)
Mutual labels:  cocoa
airyx
A BSD-based OS project that aims to provide an experience like and some compatibility with macOS (formerly known as airyxOS)
Stars: ✭ 2,490 (+15462.5%)
Mutual labels:  cocoa
touchtest
MacOS Touch Bar Control Strip daemon
Stars: ✭ 22 (+37.5%)
Mutual labels:  cocoa
Diurna
Basic/Classic Hacker News app, used as a Cocoa & Swift learning platform
Stars: ✭ 100 (+525%)
Mutual labels:  cocoa
libs-back
The GNUstep gui library is a library of graphical user interface classes written completely in the Objective-C language; the classes are based upon Apple's Cocoa framework (which came from the OpenStep specification). *** Larger patches require copyright assignment to FSF. please file bugs here. ***
Stars: ✭ 41 (+156.25%)
Mutual labels:  appkit
DarkModeSwitcher
Simple app for overriding light mode per app on macOS (demo for a blog post)
Stars: ✭ 37 (+131.25%)
Mutual labels:  appkit
YAPDFKit
Yet another PDF Kit for parsing and modifying PDF's. For OS X and iOS.
Stars: ✭ 27 (+68.75%)
Mutual labels:  cocoa
Neslib
Delphi utilities shared with other Neslib repositories
Stars: ✭ 33 (+106.25%)
Mutual labels:  foundation
Sukari
🍯 Sweet Syntactical Sugar For Swift
Stars: ✭ 30 (+87.5%)
Mutual labels:  foundation

Build Status License Platforms

ProcessEnv

ProcessEnv is a small library for capturing the shell configuration used by a Foundation/AppKit process. This is very handy for launching Task/NSTask instances with the same configuration.

Integration

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/ChimeHQ/ProcessEnv")
]

Extensions

The bulk of code is in the form of extensions on ProcessInfo, for accessing various environment variables. A single [String : String] dictionary of the user's environment is available as the userEnvironment property.

ProcessInfo.processInfo.userEnvironment

ProcessInfo.processInfo.path // $PATH
ProcessInfo.processInfo.homePath
ProcessInfo.processInfo.shellExecutablePath

Suggestions or Feedback

We'd love to hear from you! Get in touch via twitter, an issue, or a pull request.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].