# nsomar/Swiftline

Swiftline is a set of tools to help you create command line applications.

Repository: https://github.com/nsomar/Swiftline
Canonical: https://ross.abutalabs.com/products/swiftline
Language: Swift
License: MIT
License Family: permissive
Topics: cli, swift, commandline, command-line, framework, color
Last push: 2021-10-31T17:25:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3949, "days_push": 1767, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1194, forks 99 (observed 2026-08-28T04:03:56.688554+00:00)

## What it is
Swiftline is a Swift framework providing tools for building command line applications, inspired by Ruby's highline. It offers terminal string colorization, interactive prompts (Ask, Choose, Agree), external command execution, environment variable access, and command line argument parsing.

## Use cases
- build a command line tool in swift
- add colored output to terminal app
- prompt user for input in cli
- parse command line flags in swift
- run shell commands from swift app
- read environment variables in cli tool

## When to choose
- you are writing a Swift command line application and want interactive prompts
- you need ANSI colorized terminal output in Swift
- you want a highline-inspired CLI toolkit for Swift

## When to avoid
- you need a full-featured argument parser with subcommands and validation
- you are building GUI or server applications
- you need a library with frequent updates and active maintenance

## Facets
- artifact type: framework
- maturity: maintenance
- function: cli, parser, developer-tools
- domain: developer-tools, cross-platform
- platform: -
- tags: swift, terminal-colors, interactive-prompts, command-runner, argument-parsing, command-line, macos, linux

## Member repositories
- nsomar/Swiftline (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.688554+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:10.165759+00:00, confidence not recorded.
  - readme: https://github.com/nsomar/Swiftline (fetched 2026-08-28T04:03:56.688554+00:00, sha 0e351ef75d9a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
