1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

feat: add yadm completions to the repo (#960)

This is a request to add yadm completions to the repo.
These resemble the ones that are written for. The git one in your repo.
Yadm is a dotfiles manager that leverages `git` but uses your home
directory by default.

To see the tool go to <https://yadm.io/docs/overview>
This commit is contained in:
shelton louis 2024-09-25 15:58:33 -04:00 committed by GitHub
parent 33ae4c55c2
commit 5ffdfca7e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1697 additions and 96 deletions

View file

@ -1,96 +0,0 @@
# Override location of yadm repository
extern "yadm" [
...args
]
# Print yadm version
extern "yadm version" [
...args
]
# Initialize new repository for tracking dotfiles
extern "yadm init" [
...args
]
# Manage configuration for yadm
extern "yadm config" [
...args
]
# Print list of files managed by yadm
extern "yadm list" [
...args
]
# Execute bootstrap script
extern "yadm bootstrap" [
...args
]
# Encrypt files matched by encrypt spec file
extern "yadm encrypt" [
...args
]
# Decrypt files matched by encrypt spec file
extern "yadm decrypt" [
...args
]
# Setup and process alternate files
extern "yadm alt" [
...args
]
# Update permissions
extern "yadm perms" [
...args
]
# Run sub-shell with all git variables set
extern "yadm enter" [
...args
]
# Pass options to git-crypt if installed
extern "yadm git-crypt" [
...args
]
# Pass options to the git config command
extern "yadm gitconfig" [
...args
]
# Migrate from v1 to v2
extern "yadm upgrade" [
...args
]
# Report internal yadm data
extern "yadm introspect" [
...args
]
# Clone remote repository for tracking dotfiles
extern "yadm clone" [
--bootstrap # Force run the bootstrap script
--no-bootstrap # Do not execute bootstrap script
...args
]

25
modules/yadm/README.md Executable file
View file

@ -0,0 +1,25 @@
# Yadm
Yadm is a dot files manager that is written in Bash.
The code in this module reflects this fact.
The functions in this repo are typed wrappers around yadm.
## Usage
To use this module make sure you have installed yadm.
Then copy this folder to the folder where you place your nu scripts
Which is usually in `$"($nu.default-config-dir)"/scripts`.
Then reference the folder by doing in the scripts/mod.nu file.
```nu
export module yadm
```
## Contributing
This module doesn't represent all of git's functionality.
Which means it doesn't allow you to do everything git can.
if there is something missing please submit a PR to this repo.
If you can help please checkout git completions for a reference.

1672
modules/yadm/mod.nu Executable file

File diff suppressed because it is too large Load diff