Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotfim CLI semantics #10

Closed
7 of 13 tasks
Timoses opened this issue Dec 9, 2018 · 2 comments
Closed
7 of 13 tasks

dotfim CLI semantics #10

Timoses opened this issue Dec 9, 2018 · 2 comments

Comments

@Timoses
Copy link
Owner

Timoses commented Dec 9, 2018

Currently, the semantics are a bit odd. dotfim sync initializes (renamed to init in 642b79c), and dotfim syncs.


  • dotfim:
    • when run for the first time (no config in pwd): "Run dotfim in a git repository. If you are new, run dotfim init."
    • when config is available: Show available commands (help)

  • dotfim init <repository> [<directory>]:
    • Clones repository into directory (or repository basename if no directory given)
    • Asks user for dotfile directory (default user's $HOME)
      • Save dotfile directory info into <directory>/.dotfim/local.(json/yaml)

  • dotfim sync [--profile=<profile>] [<FilesOrFolders>]: (actually does the syncing part; currently called update)
    • Currently: Run update
    • New (profiles):
      • Collect all managed gitfiles
      • Check .dotfim.(json/yaml) for managed gitfiles that do not belong to a specific profile
      • Sync these files (without any profile lines)
@Timoses Timoses changed the title Semantics of dotfim and dotfim sync and dotfim rework dotfim CLI semantics Dec 9, 2018
@Timoses
Copy link
Owner Author

Timoses commented Dec 20, 2018

#3 Profiles

@Timoses
Copy link
Owner Author

Timoses commented Dec 21, 2018

The rest of the cli implementations are related to Profiles. -> Moved to #3 Profiles!

@Timoses Timoses closed this as completed Dec 21, 2018
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

No branches or pull requests

1 participant