Skip to content

feat: add format command#195

Merged
noahbald merged 1 commit intomainfrom
feat/format-command
Nov 25, 2025
Merged

feat: add format command#195
noahbald merged 1 commit intomainfrom
feat/format-command

Conversation

@noahbald
Copy link
Owner

Description

This adds a new command to the cli, oxvg format, as an alias for oxvg optimise --extends none --pretty 4 --config ./empty-config.json

Motivation and Context

This extends OXVG's usefulness as an SVG toolchain, providing straightforward access to formatting for use in an editor, npm task, ci, etc.

How Has This Been Tested?

Basic testing against a test svg

Types of changes

Features

  • Adds clap behind a ff for xmlwriter options
  • Adds --pretty and --space options for optimiser
  • Adds format command
  • Restructures oxvg package slightly

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@noahbald noahbald force-pushed the feat/format-command branch from cf6cdfc to a162a57 Compare November 23, 2025 21:40
@noahbald noahbald merged commit 57dc56a into main Nov 25, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant