Title: We need to support references in settings · Issue #3 · PoshCode/Configuration · GitHub
Open Graph Title: We need to support references in settings · Issue #3 · PoshCode/Configuration
X Title: We need to support references in settings · Issue #3 · PoshCode/Configuration
Description: When I'm configuring complicated things, I may want to be able to define variables which I can reuse in other configurations. For instance, in a script which does software installs: UserName = "Jaykul" DownloadTo = "C:\Users\{UserName}\D...
Open Graph Description: When I'm configuring complicated things, I may want to be able to define variables which I can reuse in other configurations. For instance, in a script which does software installs: UserName = "Jay...
X Description: When I'm configuring complicated things, I may want to be able to define variables which I can reuse in other configurations. For instance, in a script which does software installs: UserName = ...
Opengraph URL: https://github.com/PoshCode/Configuration/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"We need to support references in settings","articleBody":"When I'm configuring complicated things, I may want to be able to define variables which I can reuse in other configurations. For instance, in a script which does software installs:\n\n```\nUserName = \"Jaykul\"\nDownloadTo = \"C:\\Users\\{UserName}\\Downloads\\Installers\"\nConfigFolder = \"{DownloadTo}\\Configuration\"\n```\n\nCurrently we support tokenizing only for folder names. Maybe we could make it work for other settings by reference, like `{Settings.UserName}` by requiring them to be prefixed with `Settings.` and then resolving them after import (like paths in PoshCode) iterating to allow multiple reference levels:\n\n```\nUserName = \"Jaykul\"\nPaths = @{\n DownloadTo = \"C:\\Users\\{Settings.UserName}\\Downloads\\Installers\"\n ConfigFolder = \"{Settings.Paths.DownloadTo}\\Configuration\"\n}\n```\n","author":{"url":"https://github.com/Jaykul","@type":"Person","name":"Jaykul"},"datePublished":"2014-10-27T20:56:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/Configuration/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b7f91eda-78db-4c6d-26ca-8869bc38ac4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C65E:1E0AAF:4C8A150:68A7E50:69780A78 |
| html-safe-nonce | 95a093bf270026f983ffd59a34e4d965aa9772037552c91ed8d0b39f7a5f2d2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjVFOjFFMEFBRjo0QzhBMTUwOjY4QTdFNTA6Njk3ODBBNzgiLCJ2aXNpdG9yX2lkIjoiNDM4OTMxMTU0NTgyNTgyMzM1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 14217d431132422ab775dea0ba5cd2e6c4a81d2f92b9213e8f5a23bdd9c4d602 |
| hovercard-subject-tag | issue:46958377 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PoshCode/Configuration/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/225d439e41b144260f272b45f1072c2f39d2518eab24bc747846747197b68fc6/PoshCode/Configuration/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/225d439e41b144260f272b45f1072c2f39d2518eab24bc747846747197b68fc6/PoshCode/Configuration/issues/3 |
| og:image:alt | When I'm configuring complicated things, I may want to be able to define variables which I can reuse in other configurations. For instance, in a script which does software installs: UserName = "Jay... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Jaykul |
| hostname | github.com |
| expected-hostname | github.com |
| None | e71ed39771d00f42ce2fc9320895c8c608c164191e118eae487fc3bd0af6886d |
| turbo-cache-control | no-preview |
| go-import | github.com/PoshCode/Configuration git https://github.com/PoshCode/Configuration.git |
| octolytics-dimension-user_id | 5641451 |
| octolytics-dimension-user_login | PoshCode |
| octolytics-dimension-repository_id | 22584579 |
| octolytics-dimension-repository_nwo | PoshCode/Configuration |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22584579 |
| octolytics-dimension-repository_network_root_nwo | PoshCode/Configuration |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4919f24054c1e9bf76d7b543cb2ac018075b18ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width