Skip to content

feat: add workmux command for generating workmux configuration#8

Merged
sysid merged 1 commit intomainfrom
feat/workmux
Jan 2, 2026
Merged

feat: add workmux command for generating workmux configuration#8
sysid merged 1 commit intomainfrom
feat/workmux

Conversation

@sysid
Copy link
Copy Markdown
Owner

@sysid sysid commented Jan 2, 2026

Summary

  • Add new rplc workmux command that generates a .workmux.yaml configuration file for workmux integration
  • The generated config includes post_create hooks for direnv setup and files.symlink entries for all rplc-managed files
  • Add ConfigParser.add_config_entry() helper method for appending entries to the rplc-config section

Details

The workmux command:

  • Requires swapped-in state (at least one sentinel must exist)
  • Generates .workmux.yaml with direnv hooks (ln -s $SOPS_PATH/dot.envrc .envrc and direnv allow)
  • Lists all rplc-managed files in the symlink section, including .workmux.yaml itself
  • Auto-adds .workmux.yaml to the rplc config file if not already present
  • Inserts config entries directly after the last content line (no blank lines)

Test plan

  • Test workmux fails when not swapped-in
  • Test workmux generates correct YAML content
  • Test workmux adds entry to rplc config
  • Test no duplicate config entries are added
  • Test add_config_entry handles various edge cases
  • All 122 tests pass

Add new `rplc workmux` command that generates a `.workmux.yaml` file with:
- post_create hooks for direnv setup (symlinks $SOPS_PATH/dot.envrc)
- files.symlink entries for all rplc-managed files

The command requires swapped-in state and auto-adds .workmux.yaml to the
rplc config. Also adds ConfigParser.add_config_entry() helper for
appending entries to the ## rplc-config section.
@sysid sysid merged commit b1eb41c into main Jan 2, 2026
2 checks passed
sysid added a commit that referenced this pull request Jan 2, 2026
feat: add workmux command for generating workmux configuration
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.

1 participant