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

Add tui; make port nullable #10

Merged
merged 4 commits into from
Jun 9, 2023
Merged

Add tui; make port nullable #10

merged 4 commits into from
Jun 9, 2023

Conversation

shivaraj-bh
Copy link
Contributor

@shivaraj-bh shivaraj-bh commented Jun 8, 2023

Resolves #9

Additionally implements extraCliArgs internal option to avoid coupling

Copy link
Member

@srid srid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of things to improve.

flake-module.nix Outdated Show resolved Hide resolved
flake-module.nix Outdated Show resolved Hide resolved
@shivaraj-bh shivaraj-bh changed the title add disable-tui mkOption add tui and extraCliArgs options Jun 9, 2023
port = "-p ${toString config.process-compose.port}";
tui = "-t=${lib.boolToString config.process-compose.tui}";
};
getCliArgs =
Copy link
Member

@srid srid Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming is problematic here.

  • getCliArgs == a verb (not a noun) that indicates that it is a function that will return cliArgs (whatever that is)
  • In reality, this variable holds a list (thus a noun) of cli arguments

Copy link
Member

@srid srid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code path will be impacted by #2, so I'll merge this without doing any refactor.

@srid srid changed the title add tui and extraCliArgs options Add tui; make port nullable Jun 9, 2023
@srid srid merged commit 90b6788 into Platonic-Systems:main Jun 9, 2023
@shivaraj-bh shivaraj-bh deleted the disable-tui branch June 10, 2023 05:26
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.

Add an option to disable TUI
2 participants