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

Multi format output #45

Closed
julioz opened this issue Jul 5, 2020 · 0 comments · Fixed by #49
Closed

Multi format output #45

julioz opened this issue Jul 5, 2020 · 0 comments · Fixed by #49

Comments

@julioz
Copy link
Owner

julioz commented Jul 5, 2020

Currently, FloorPlan only allows for outputting one format at a time.
We want to enable multi format output, so that users can mix-and-match renderings as they seem fit.

The gradle plugin interface will then allow for multiple output enablement:

floorPlan {
  schemaLocation = ...
  outputLocation = ...
  outputFormat {
    dbml {
      enabled = true
    }
    svg {
      enabled = true
    }
  }
}

The CLI interface needs to also be rethought, to extend the --format argument to receive a List instead of a String. The curious bit is how we can make "nested arguments", given DBML can receive its own sub-parameters for rendering.

julioz added a commit that referenced this issue Jul 22, 2020
Fixes #45

Enables multi format output, so that users can mix-and-match renderings as they seem fit.

The interface through the CLI now takes comma-separated `List` of `--format` arguments.
The Gradle Plugin was updated to allow for multiple `enabled` `outputFormat` definitions.
----------------------
* Output formats is list

* Iterate over list of formats and process each

* Parse CLI argument list

* Update CLI helper

* Map output formats through CLI app

* FloorPlan acts upon a single output per run

* Update comment

* Update gradle plugin to receive multiple output format definitions

* Update sample app for multi-output

* Update docs
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 a pull request may close this issue.

1 participant