apple / apple/swift-argument-parser

Automatic GUI derivation

Open
#328 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
3.8k
Forks
411
Avg merge
7d 14h
Merged PRs (30d)
15

Description

The [Python library Gooey](https://github.com/chriskiehl/Gooey) automagically converts commandline applications using argparse to GUI applications using wxPython.

> At run-time, it parses your Python script for all references to ArgumentParser. (The older optparse is currently not supported.) These references are then extracted, assigned a component type based on the 'action' they provide, and finally used to assemble the GUI.

It has a bunch of ways of customizing the GUI output as well.

Would it be possible to make something similar that sits on top of ArgumentParser to autosynthesize a GUI, say using SwiftUI?

Found via [HackerNews](https://news.ycombinator.com/item?id=27490291).

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Swift Argument Parser's public API and the linked Gooey project's approach to deriving a GUI from command-line definitions. The issue names no repository files or tests; completion would require an agreed design for automatic GUI derivation, including its SwiftUI scope, before implementation could begin.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.