Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 6 includes swift format sub command but does not list it #75502

Open
doozMen opened this issue Jul 26, 2024 · 0 comments · May be fixed by swiftlang/swift-driver#1670
Open

Swift 6 includes swift format sub command but does not list it #75502

doozMen opened this issue Jul 26, 2024 · 0 comments · May be fixed by swiftlang/swift-driver#1670
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation inaccurate info Bug → documentation: Inaccurate info

Comments

@doozMen
Copy link

doozMen commented Jul 26, 2024

Description

https://forums.swift.org/t/swift-6-build-swiftlang-swift-format-in-its-toolchain-should-this-also-work-on-linux/73353/4

Reproduction

swift format -h (works)
OVERVIEW: Format or lint Swift source code

USAGE: swift-format [--version]

OPTIONS:
-v, --version Print the version and exit
-h, --help Show help information.

SUBCOMMANDS:
dump-configuration Dump the default configuration in JSON format to standard output
format (default) Format Swift source code
lint Diagnose style issues in Swift source code

See 'swift-format help ' for detailed help.

swift -h

...

Subcommands:

swift build Build Swift packages
swift package Create and work on packages
swift run Run a program from a package
swift test Run package tests
swift repl Experiment with Swift code interactively

Use swift --version for Swift version information.

Use swift --help for descriptions of available options and flags.

Use swift help <subcommand> for more information about a subcommand.

does not list format sub command

Expected behavior

list format as a sub command with breef info that it runs swift-format

Environment

swift-driver version: 1.112.3 Apple Swift version 6.0 (swiftlang-6.0.0.6.8 clang-1600.0.23.1)
Target: arm64-apple-macosx14.0

and on linux

Additional information

Super that this is included now!

@doozMen doozMen added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Jul 26, 2024
@MaxDesiatov MaxDesiatov added documentation inaccurate info Bug → documentation: Inaccurate info and removed triage needed This issue needs more specific labels labels Jul 26, 2024
rjmansfield added a commit to rjmansfield/swift-driver that referenced this issue Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation inaccurate info Bug → documentation: Inaccurate info
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants