Skip to content

Simplify Running Dev Utils Commands for Enhanced Developer Experience #2341

Closed
@Matejkob

Description

@Matejkob

Description

The process of executing formatting (also other) commands using SwiftSyntax development utilities has become a point of contention due to its complexity. The command:

swift run --package-path SwiftSyntaxDevUtils/ swift-syntax-dev-utils format

is lengthy and not easily memorized, which can deter its frequent use. This hampers the workflow efficiency.

Reflecting on the ease of the old ./format.py command, there's a clear need for a more streamlined approach. The proposal for a root-level shell script that encapsulates the verbose command into a more manageable form is commendable. With such a script, developers could run a much simpler command:

./swift-syntax-dev-utils format

or

./dev-utils format

Implementation Goals:

  • Craft a shell script that acts as a gateway for the current complex commands.
  • Make sure the script can accept and correctly pass through arguments to the SwiftSyntax development utilities. All commands should be handled; it would be beneficial to also handle help command.
  • Update the project documentation to guide contributors on the usage of the new streamlined command.

Originally posted in a #2334 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions