awslabs / awslabs/diagram-as-code

[Feature Request] Allow optional control over vertical and horizontal display

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
cfn-template feature new feature
Dominant language
Go
Stars
1.6k
Forks
102
Avg merge
2d 9h
Merged PRs (30d)
2

Description

## Request
The current implementation defaults to horizontal, so only horizontal views are generated.
https://github.com/awslabs/diagram-as-code/blob/601056c873298e2f2312b3f3ffbe8be6b458d77c/internal/types/group.go#L55

![horizontal](https://github.com/awslabs/diagram-as-code/assets/41433979/2817d481-610f-42d0-abb1-1a48b0b6edcf)

It's better to be able to switch the display with an option.

### Example
```
$ awsdac --cfn-template --vertical
```

![vertical](https://github.com/awslabs/diagram-as-code/assets/41433979/7cdae8af-ce38-4dc9-a807-528cf9db178f)

Contributor guide

Open the contributing guide

Research direction

Start with internal/types/group.go at the linked default layout setting, then trace how the awsdac command parses options and generates diagrams. Add the requested vertical or horizontal control while preserving the current horizontal default. Done means the example command produces a vertical diagram and existing horizontal output remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.