Skip to content

treewide: consolidate logic in platform-specific commands#280

Closed
NotAShelf wants to merge 1 commit intomasterfrom
consolidate-logic
Closed

treewide: consolidate logic in platform-specific commands#280
NotAShelf wants to merge 1 commit intomasterfrom
consolidate-logic

Conversation

@NotAShelf
Copy link
Member

I've noticed a lot of code is duplicated in nixos.rs, home.rs and darwin.rs, which makes it a little difficult to add new functionality to add functionality to all platform-specific command at once.

Still no tests, but testing indicates no regression.

@NotAShelf NotAShelf marked this pull request as draft May 10, 2025 20:54
@NotAShelf
Copy link
Member Author

NotAShelf commented May 10, 2025

Edit: I'm an idiot, this'll be finished later.

Notes on what's broken:

  • repl gets hostname incorrectly
  • darwin gets the wrong attribute
  • hm probably does the above mistake

I hate... computer...

@NotAShelf
Copy link
Member Author

Another time, cba.

@NotAShelf NotAShelf closed this May 10, 2025
@viperML
Copy link
Contributor

viperML commented May 10, 2025

Damn

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