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

graphlog: add enum GraphStyle to replace string parameter #4391

Merged
merged 6 commits into from
Sep 6, 2024

Conversation

yuja
Copy link
Collaborator

@yuja yuja commented Sep 5, 2024

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

cli/tests/test_log_command.rs Outdated Show resolved Hide resolved
cli/src/graphlog.rs Outdated Show resolved Hide resolved
I'm going to add enum GraphStyle, and it's specific to the CLI.
node_template_for_key() will be inlined later.
I'll make it error out if the style name is invalid.
It's easier to follow than function call with 3 string parameters.
show_op_diff() has many arguments. Let's make it a bit less.
@yuja yuja enabled auto-merge (rebase) September 6, 2024 00:41
@yuja yuja merged commit 6ea46b9 into martinvonz:main Sep 6, 2024
18 checks passed
@yuja yuja deleted the push-pvwoopoyqzqn branch September 6, 2024 00:51
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.

2 participants