You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After writing Scope configs for a couple of apps, I noticed many of the config files were very similar. What I'd like to do is deploy a set of re-usable configs alongside scope within Gusto. To do that, I'd like for Scope to additionally look for config files relative to it's current executable location.
Consider this example, where scope is deployed to some system path:
❯ tree some-system-path
some-system-path
├── bin
│ ├── scope
│ └── scope-intercept
└── etc
└── scope
├── check-1.yaml
└── check-2.yaml
In addition to loading from the local .scope directory, it would also load from <some-system-path>/etc/scope.
Plan
Add the ${SCOPE_BIN_DIR}/../etc/scope path to the config paths loaded
Allow recursing into sub-directories
Expand how ScopeDoctorGroupaction.check.paths are evaluated, so that application files (i.e. files not in proximity to the shared configs) can be specifically referenced
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After writing Scope configs for a couple of apps, I noticed many of the config files were very similar. What I'd like to do is deploy a set of re-usable configs alongside
scopewithin Gusto. To do that, I'd like for Scope to additionally look for config files relative to it's current executable location.Consider this example, where
scopeis deployed to some system path:In addition to loading from the local
.scopedirectory, it would also load from<some-system-path>/etc/scope.Plan
${SCOPE_BIN_DIR}/../etc/scopepath to the config paths loadedScopeDoctorGroupaction.check.pathsare evaluated, so that application files (i.e. files not in proximity to the shared configs) can be specifically referencedBeta Was this translation helpful? Give feedback.
All reactions