website: Copy files during build. website: Allow for mixed env builds. website: Reduce build size. website: Expose build. website: Add build memory debugging. WIP: Disable broken links check to compare memory usage. website: Update deps. website: Clean up API paths. website: Flesh out 3.8 fixes. Format. website: Update ignore paths. Website: Clean up integrations build. website: Fix paths. website: Optimize remark. website: Update deps. website: Format. website: Remove linking. website: Fix paths. wip: Attempt API only build. Prep. Migrate render to runtime. Tidy sidebar. Clean up templates. docs: Move directory. WIP docs: Flesh out split. website: Fix issue where routes have collisions.
22 lines
540 B
Bash
Executable File
22 lines
540 B
Bash
Executable File
_completions () {
|
|
if [[ -z "${MIGRATE_PATH}" ]];
|
|
then MIGRATE_PATH="./";
|
|
else MIGRATE_PATH="${MIGRATE_PATH}"; fi
|
|
|
|
if [[ -z "${TMP_STRUCTURE_PATH}" ]];
|
|
then TMP_STRUCTURE_PATH="./tmp/";
|
|
else TMP_STRUCTURE_PATH="${TMP_STRUCTURE_PATH}"; fi
|
|
|
|
if [[ $1 = $3 ]];
|
|
then LSPATH="$MIGRATE_PATH";
|
|
else LSPATH="$TMP_STRUCTURE_PATH"; fi
|
|
|
|
for i in $(compgen -f -- "$LSPATH$2" | cut -d "/" -f 2-); do
|
|
if [[ -d "$LSPATH$i" ]];
|
|
then COMPREPLY+=("$i/");
|
|
else COMPREPLY+=("$i"); fi
|
|
done
|
|
}
|
|
|
|
complete -o nospace -o filenames -F _completions map
|