Skip to content

Commit

Permalink
build: 🔥 update docs for breaking api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Dec 2, 2023
1 parent 936b69b commit 69ee236
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
9 changes: 6 additions & 3 deletions defaults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ $Global:OX_PROXY = @{
'v' = '1080'
}

$Global:OX_ELEMENT.cv = "$HOME/.config/clash-verge/verge.yaml"
$Global:OX_OXIDE.bkcv = "$env:OX_BACKUP/apps/verge.yaml"

##########################################################
# select export and import configurations
# select oxidize and reduce configurations
##########################################################

# files to be exported to backup folder
Expand All @@ -87,10 +90,10 @@ $Global:OX_PROXY = @{
# vs: vscode's settings.json
# vsk: vscode's keybindings.json
# vss_: vscode's snippets folder
$Global:OX_EXPORT_FILE = @('ox', 'vs', 'vsk', 'vss_')
$Global:OX_OXIDIZE_FILE = @('ox')

# files to be import from backup folder
# $Global:OX_IMPORT_FILE = @("ox", "vs", "vsk", "vss_")
$Global:OX_REDUCE_FILE = @("ox")

##########################################################
# git settings
Expand Down
12 changes: 6 additions & 6 deletions defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ declare -A OX_PROXY=(
)

OX_ELEMENT[cv]="${HOME}/.config/clash-verge/verge.yaml"
OX_OXIDE[bkcv]="${OX_BACKUP}/app/verge.yaml"
OX_OXIDE[bkcv]="${OX_BACKUP}/apps/verge.yaml"

##########################################################
# select export and import settings
# select oxidize and reduce settings
##########################################################

# files to be exported to backup folder
Expand All @@ -96,12 +96,12 @@ OX_OXIDE[bkcv]="${OX_BACKUP}/app/verge.yaml"
# vs: vscode's settings.json
# vsk: vscode's keybindings.json
# vss_: vscode's snippets folder
declare -a OX_EXPORT_FILE
export OX_EXPORT_FILE=(ox)
declare -a OX_OXIDIZE_FILE
export OX_OXIDIZE_FILE=(ox)

# files to be import from backup folder
declare -a OX_IMPORT_FILE
export OX_IMPORT_FILE=(ox)
declare -a OX_REDUCE_FILE
export OX_REDUCE_FILE=(ox)

##########################################################
# git settings
Expand Down
12 changes: 6 additions & 6 deletions oxidizer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ function back_all {
}

# export configurations
function epall {
ForEach ($obj in $Global:OX_EXPORT_FILE) {
epf $obj
function oxall {
ForEach ($obj in $Global:OX_OXIDIZE_FILE) {
oxf $obj
}
}

# export configurations
function ipall {
ForEach ($obj in $Global:OX_IMPORT_FILE) {
ipf $obj
function rdall {
ForEach ($obj in $Global:OX_REDUCE_FILE) {
rdf $obj
}
}

Expand Down
16 changes: 8 additions & 8 deletions oxidizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ back_all() {
done
}

# export configurations
epall() {
for obj in "${OX_EXPORT_FILE[@]}"; do
epf "$obj"
# oxidize configurations
oxall() {
for obj in "${OX_OXIDIZE_FILE[@]}"; do
oxf "$obj"
done
}

# import configurations
ipall() {
for obj in "${OX_IMPORT_FILE[@]}"; do
ipf "$obj"
# reduce configurations
rdall() {
for obj in "${OX_REDUCE_FILE[@]}"; do
rdf "$obj"
done
}

Expand Down

0 comments on commit 69ee236

Please sign in to comment.