Skip to content

support claude configuration to push and pull #84

Closed

Description

@AnnatarHe

Support claude configuration to push and pull in command dotfiles push and dotfiles pull.

the entry files:

  • commands/dotfiles_pull.go
  • commands/dotfiles_push.go

you may need to add dotfile_claude.go in model folder

Activity

  1. AnnatarHe commented on Sep 1, 2025

    @AnnatarHe
    ContributorAuthor

    @claude pls do it

  2. claude commented on Sep 1, 2025

    @claude
    Contributor

    Claude finished @AnnatarHe's task —— View job • claude/issue-84-20250901-1335 • Create PR ➔


    Implementation: Support claude configuration in dotfiles push/pull ✅

    Successfully added claude configuration support to the dotfiles push and pull commands.

    Todo List:

    • Analyze existing dotfiles push/pull functionality
    • Examine model layer patterns for configuration handling
    • Create model/dotfile_claude.go with claude configuration logic
    • Update commands/dotfiles_pull.go to support claude configuration
    • Update commands/dotfiles_push.go to support claude configuration
    • Build and test the changes
    • Commit and push changes

    Changes Made:

    Added model/dotfile_claude.go:

    • Created ClaudeApp struct implementing the DotfileApp interface
    • Supports common Claude Code configuration paths:
      • ~/.claude/settings.json
      • ~/.config/claude/settings.json
      • ~/.claude/config.json
      • ~/.config/claude/config.json
      • .claude/settings.json (project-level)
      • CLAUDE.md (project documentation)

    Updated commands:

    • commands/dotfiles_push.go: Added NewClaudeApp() to available apps list
    • commands/dotfiles_pull.go: Added "claude": model.NewClaudeApp() to apps map

    Usage:

    # Push all dotfiles including Claude configuration
    shelltime dotfiles push
    
    # Push only Claude configuration  
    shelltime dotfiles push --apps claude
    
    # Pull Claude configuration
    shelltime dotfiles pull --apps claude
  3. added a commit that references this issue on Sep 1, 2025
    63a67f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions