mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
68b234f59b
First functional version, but it needs some improvements and fixes
identified as I've used it personally on one thing, and when an AI
(Claude) used it to work through the CI test errors.
I had the AI make a SKILL.md file. If the AI indicates it needs to
build the ifcopenshell binary, use this and let it rip.
(cherry picked from commit fa98aad469)
22 lines
524 B
Bash
22 lines
524 B
Bash
#!/usr/bin/env bash
|
|
# .ifcos_env
|
|
# register autocompletes. just source the file in your shell, i.e.
|
|
# source .ifcos_env
|
|
|
|
.ifcos_env() {
|
|
local cur prev opts
|
|
COMPREPLY=()
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
|
opts="create update up down restart build attach logs ps config remove help"
|
|
|
|
# Basic static completion
|
|
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
|
|
|
return 0
|
|
}
|
|
|
|
# Register the completion for the command "ifcos_env"
|
|
complete -F .ifcos_env ./ifcos_env
|