{"id":51329,"library":"cli-safeexec","title":"CLI SafeExec","description":"A safe wrapper for executing external commands with path resolution and security checks.","status":"active","version":"1.0.1","language":"go","source_language":null,"source_url":"https://github.com/cli/safeexec","tags":["cli","exec","security","path"],"install":[{"cmd":"go get github.com/cli/safeexec","lang":"bash","label":"Install github.com/cli/safeexec"}],"dependencies":[],"imports":[{"symbol":"safeexec","correct":"github.com/cli/safeexec"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/cli/safeexec\"\n)\n\nfunc main() {\n\tpath, err := safeexec.LookPath(\"git\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(path)\n}","lang":"go","description":"Safely look up an executable path"},"warnings":[],"env_vars":null,"search_vec":"'check':15 'cli':1,16 'command':9 'exec':17 'execut':7 'extern':8 'path':11,19 'resolut':12 'safe':4 'safeexec':2 'secur':14,18 'wrapper':5","created_at":"2026-06-15T06:09:03.916258+00:00","updated_at":"2026-06-15T06:09:03.916258+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/cli/safeexec","github":"https://github.com/cli/safeexec","docs":"https://pkg.go.dev/github.com/cli/safeexec#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}