Implement yaml format
This commit is contained in:
26
sync.yaml.example
Normal file
26
sync.yaml.example
Normal file
@@ -0,0 +1,26 @@
|
||||
# Example sync.yaml file
|
||||
# You can use this format to define symbolic links
|
||||
# Each link specifies source, target, and optional flags
|
||||
links:
|
||||
- source: ~/Documents/config.ini
|
||||
target: ~/.config/app/config.ini
|
||||
# This will create a symbolic link, overwriting any existing symlink
|
||||
force: true
|
||||
|
||||
- source: ~/Pictures
|
||||
target: ~/Documents/Pictures
|
||||
# This will create a hard link instead of a symbolic link
|
||||
hard: true
|
||||
force: true
|
||||
|
||||
- source: ~/Scripts/script.sh
|
||||
target: ~/bin/script.sh
|
||||
# This will delete a non-symlink file at the target location
|
||||
# 'delete: true' implies 'force: true'
|
||||
delete: true
|
||||
|
||||
# Alternative format:
|
||||
# Instead of using the 'links' property, you can define an array directly:
|
||||
# - source: ~/Documents/config.ini
|
||||
# target: ~/.config/app/config.ini
|
||||
# force: true
|
||||
Reference in New Issue
Block a user