Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Add Profile Support to daje #32

@Wabri

Description

@Wabri

Description

Implement basic support for profile-based dotfile management.

A profile represents a group of dotfiles associated with a particular environment (e.g., tumbleweed-sway). The user can apply a profile to their home directory using daje apply <profile>.

Profiles are stored under ~/.daje/profiles/<profile-name>/.

Requirements

  • Add ~/.daje/profiles/<profile-name> directory layout
  • When daje apply is called:
    • Load the requested profile
    • Copy/symlink the files to $HOME
  • Implement simple error handling if:
    • The profile doesn't exist
    • The profile has no files
  • Update apply.go to call this logic
  • The code must be cover with unit tests

Suggestions

~/.daje/
├── profiles/
│   ├── common/
│   │   └── .bashrc
│   └── sway/
│       └── .config/hypr/hyprland.conf

Acceptance Criteria

  • AC1: daje apply sway applies the files in ~/.daje/profiles/sway/ to local environment
  • AC2: Errors are clearly reported if the profile does not exist
  • AC3: Unit tests pass and cover new code

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions