6 source [
file join [
file dirname [
info script]] hog.tcl]
14 Msg Debug "$_tool launched with arguments: $::argv"
17 set node [dict get $request node]
18 set typed_path [dict get $request typed_path]
19 set project [dict get $request project]
20 set project_name [dict get $request project_name]
25 if {$_tool eq "tclsh"} {
30 Logo [Repo::Get repo_path]
32 if {[Launcher::Get directive] eq ""} {
33 Msg Error "No directive given. Run './Hog/Do HELP' for usage."
38 Msg Debug "HogEnv.conf found"
48 if {$project_name ne ""} {
50 if {[
file exists [tdict getval $hog_project conf_path]]} {
53 CurrentProject::Load $hog_project
65 if {[dict exists $_ropts -errorcode]} {
66 set _ec [dict get $_ropts -errorcode]
67 if {[
lindex $_ec 0] eq "HOG_TOOL_FAILED" && [
llength $_ec] >= 2} {
68 set _exit [
lindex $_ec 1]
73 switch -- [
lindex $result 0] {
78 default {
Msg Error "Unexpected dispatch verdict: $result"
exit 1}