managedDir returns the directory holding CAM-managed instruction files. It honors CAM_CONFIG_DIR (via pathutil.ConfigDir) so tests can isolate it.
()
| 11 | // managedDir returns the directory holding CAM-managed instruction files. |
| 12 | // It honors CAM_CONFIG_DIR (via pathutil.ConfigDir) so tests can isolate it. |
| 13 | func managedDir() string { |
| 14 | return filepath.Join(pathutil.ConfigDir(), "instructions") |
| 15 | } |
| 16 | |
| 17 | // safeName maps a human instruction name to a filesystem-safe basename by |
| 18 | // replacing every character outside [A-Za-z0-9._-] with '_'. |
no test coverage detected