Add scripting command families#20
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds typed command families for Make, Node, Npm, Yarn, Pnpm, Bun, Terraform, Kubectl, and Python so scripting-oriented tools can be composed through SwiftyShell with package-trait gating.
Changes
Make,Node,Npm,Yarn,Pnpm,Bun,Terraform,Kubectl, andPython.Allumbrella wiring, CI trait detection, and reusable CI matrix entries.Testing
swift test --enable-all-traits(full surface)swift test(default = Core only)swift-format lint --strict --recursive Sources Tests Scriptsswift -warnings-as-errors Scripts/validate-traits.swiftswift -warnings-as-errors Scripts/validate-docc-coverage.swiftswift test -Xswiftc -warnings-as-errors"" Git Brew Grep Fzf Rg Swift Gh Docker Make Node Npm Terraform Kubectl Python Rsync Tar Zip Unzip CommonUtilities AllYarn,Pnpm,Bunswift package -Xswiftc -warnings-as-errors --allow-writing-to-directory docs generate-documentation --target SwiftyShell --output-path docs --transform-for-static-hosting --hosting-base-path SwiftyShellswift test --enable-all-traits --enable-code-coverage -Xswiftc -warnings-as-errors --show-codecov-pathswift test --enable-all-traits --enable-code-coverage -Xswiftc -warnings-as-errorsswift -warnings-as-errors Scripts/validate-code-coverage.swift --input .build/arm64-apple-macosx/debug/codecov/SwiftyShell.json --minimum-line-coverage 84(90.53%)make linux-ciNew Command Family Checklist
Package.swift(PascalCase, matches type name)Allumbrella enabled traits#if <Trait> ... #endifTests/SwiftyShellTests/<Trait>/and are wrapped in#if <Trait>swift build --traits <Trait>succeeds in isolation (covered by local trait checks)swift test --enable-all-traitspassesAGENTS.mdswift Scripts/validate-traits.swiftpasses locallyswift-format lint --strictclean on every touched Swift fileNotes