Initial commit

This commit is contained in:
2025-12-13 12:06:12 +00:00
committed by Thomas
commit 71696ac043
13 changed files with 430 additions and 0 deletions

95
Taskfile.yml Normal file
View File

@@ -0,0 +1,95 @@
# https://taskfile.dev
version: "3"
vars:
# Available for all Taskfiles!
# --- Color Palette (ANSI Escape Codes) ---
RESET: '\033[0m'
BOLD: '\033[1m'
# Standard Colors
RED: '\033[0;31m'
GREEN: '\033[0;32m'
YELLOW: '\033[0;33m'
BLUE: '\033[0;34m'
MAGENTA: '\033[0;35m'
CYAN: '\033[0;36m'
WHITE: '\033[0;37m'
# Bold/Bright Colors
B_RED: '\033[1;31m'
B_GREEN: '\033[1;32m'
B_YELLOW: '\033[1;33m'
B_BLUE: '\033[1;34m'
B_MAGENTA: '\033[1;35m'
B_CYAN: '\033[1;36m'
B_WHITE: '\033[1;37m'
tasks:
default:
desc: Show available tasks
silent: true
cmds:
- task: version
- task --list
version:
silent: true
vars:
NAME_COMPONENT: conan2-config
URL_COMPONENT: https://package-cloud.dns.army/ros2/conan2-config
GIT_REF: main
GIT_SHA:
sh: git ls-remote {{.URL_COMPONENT}}.git {{.GIT_REF}} | awk 'NR==1 {print substr($1,1,7)}'
cmds:
- printf "{{.B_MAGENTA}}Component-Name{{.RESET}} - {{.CYAN}}{{.NAME_COMPONENT}}{{.RESET}}\n"
- printf "{{.B_MAGENTA}}Component-Url{{.RESET}} - {{.CYAN}}{{.URL_COMPONENT}}{{.RESET}}\n"
- printf "{{.B_MAGENTA}}Branch{{.RESET}} - {{.CYAN}}{{.GIT_REF}} {{.B_WHITE}}{{.RESET}} - {{.B_MAGENTA}}Hash{{.RESET}} - {{.GREEN}}{{.GIT_SHA}}{{.RESET}}\n"
- printf "\n"
list:profiles:
desc: List all available conan build profiles [local]
cmds:
- conan profile list
list:remotes:
desc: List all available conan remotes [local]
cmds:
- conan remote list
list:config:
desc: List all conan configuration [local+remote]
vars:
URL_COMPONENT: https://package-cloud.dns.army/ros2/conan2-config
GIT_REF: main
cmds:
- conan config list
- printf "Using {{.CYAN}} conan config list{{.RESET}}\n"
- printf "{{.B_MAGENTA}}Added by configuration from remote (additional installed):{{.RESET}}\n"
- curl {{.URL_COMPONENT}}/raw/branch/{{.GIT_REF}}/global.conf
silent: true
show:readme:
desc: Show README (RAW with just curl cmd) [remote]
vars:
URL_COMPONENT: https://package-cloud.dns.army/ros2/conan2-config
GIT_REF: main
cmds:
- curl {{.URL_COMPONENT}}/raw/branch/{{.GIT_REF}}/README.md
show:readme:glow:
desc: Show (fancy) README using glow [remote]
vars:
URL_COMPONENT: https://package-cloud.dns.army/ros2/conan2-config
GIT_REF: main
cmds:
- mkdir -p .glow_styles
- curl -s -o .glow_styles/dracula.json https://raw.githubusercontent.com/charmbracelet/glamour/refs/heads/master/styles/dracula.json
- >-
glow "{{.URL_COMPONENT}}/raw/branch/{{.GIT_REF}}/README.md"
--tui
--line-numbers
--width 0
--style .glow_styles/dracula.json