Skip to content

[Feature] Profile Export/Import for Dotfile Syncing #89

@yashksaini-coder

Description

@yashksaini-coder

Goal

Make it easy to reproduce a package setup on a new machine.

Description

Add two CLI subcommands (or Settings actions) for profile management:

Export (trx export-profile or Settings → "Export Profile"):

  • Collect all packages installed via TRX-managed backends
  • Write to ~/.config/trx/profile.toml:
    [[packages]]
    name = "git"
    provider = "apt"
    
    [[packages]]
    name = "neovim"
    provider = "pacman"

Import (trx import-profile <file>):

  • Read profile.toml
  • Install each listed package via the corresponding backend (skip if already installed)
  • Show a progress indicator for each package

Works best combined with the CLI batch mode feature (#78).

Tech

Rust, Serde, std::fs

Difficulty

Level 3 – Advanced

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions