René's URL Explorer Experiment


Title: feat: cli: allow editing template metadata by johnstcn · Pull Request #2159 · coder/coder · GitHub

Open Graph Title: feat: cli: allow editing template metadata by johnstcn · Pull Request #2159 · coder/coder

X Title: feat: cli: allow editing template metadata by johnstcn · Pull Request #2159 · coder/coder

Description: This PR adds a CLI command template edit which allows updating the following metadata fields of a template: Description Max TTL Min Autostart Interval

Open Graph Description: This PR adds a CLI command template edit which allows updating the following metadata fields of a template: Description Max TTL Min Autostart Interval

X Description: This PR adds a CLI command template edit which allows updating the following metadata fields of a template: Description Max TTL Min Autostart Interval

Opengraph URL: https://github.com/coder/coder/pull/2159

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8860c6d0-495d-60a1-2502-43e223fbbcea
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1E4:1087D4:1B1F2B8:2432EEF:6B0160C1
html-safe-nonce4ff9885b68ddaac036b2bedc8bc1f807ac9132dde35466d3be2bcc8010cf9b28
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUU0OjEwODdENDoxQjFGMkI4OjI0MzJFRUY6NkIwMTYwQzEiLCJ2aXNpdG9yX2lkIjoiODQ0NTQzNTQ0ODUyODAzNjAzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac358f7da1620d3842238ef1414fce08fc3c3192b0ddb201ce733f9c2193e904c2
hovercard-subject-tagpull_request:961512076
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/2159/files
twitter:imagehttps://avatars.githubusercontent.com/u/4949514?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4949514?s=400&v=4
og:image:altThis PR adds a CLI command template edit which allows updating the following metadata fields of a template: Description Max TTL Min Autostart Interval
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/2159/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F2159%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F2159%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/2159/files
Reloadhttps://github.com/coder/coder/pull/2159/files
Reloadhttps://github.com/coder/coder/pull/2159/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
johnstcnhttps://github.com/johnstcn
mainhttps://github.com/coder/coder/tree/main
cj/1433/edit-template-metahttps://github.com/coder/coder/tree/cj/1433/edit-template-meta
Conversation 23 https://github.com/coder/coder/pull/2159
Commits 4 https://github.com/coder/coder/pull/2159/commits
Checks 0 https://github.com/coder/coder/pull/2159/checks
Files changed https://github.com/coder/coder/pull/2159/files
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
feat: cli: allow editing template metadata https://github.com/coder/coder/pull/2159/files#top
Show all changes 4 commits https://github.com/coder/coder/pull/2159/files
3c5b15a feat: cli: allow editing template metadata johnstcn Jun 8, 2022 https://github.com/coder/coder/pull/2159/commits/3c5b15ab0f99be33b658f1918c14665c34d2ce8f
54984b4 Apply suggestions from code review johnstcn Jun 8, 2022 https://github.com/coder/coder/pull/2159/commits/54984b4f06d5fdf03e4f37d2c2d5e3cfae882dbb
cf95586 update unit test to check for negative durations johnstcn Jun 8, 2022 https://github.com/coder/coder/pull/2159/commits/cf9558680bb861a8a92829e849d37a6719a9db25
b71792c address PR comments johnstcn Jun 8, 2022 https://github.com/coder/coder/pull/2159/commits/b71792cfc9628df7907ff81078de9a3b480fc266
Clear filters https://github.com/coder/coder/pull/2159/files
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
templateedit.go https://github.com/coder/coder/pull/2159/files#diff-d448ce6a6c68a87b08ad6400a14654a82e0c293acb2e4361b1ed951e6fa35dc7
templateedit_test.go https://github.com/coder/coder/pull/2159/files#diff-087e6c191c7c8e24258dae57dfe0c1c23b094fd24f2936dd11497d378ead311a
templates.go https://github.com/coder/coder/pull/2159/files#diff-d5b684096dfa0c61b293f31a2a49ae5b74dc085b79088f6cf50d532e3f08e29f
coderd.go https://github.com/coder/coder/pull/2159/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
databasefake.go https://github.com/coder/coder/pull/2159/files#diff-7d8285434c7381493f3ec8aa6c8671699af10be17b34acf10d576495f1de16f9
querier.go https://github.com/coder/coder/pull/2159/files#diff-a96e7cef920f37ba1f1032eba4b241d1a9a06bc2089062b4ed3b1aa73c6bcd48
queries.sql.go https://github.com/coder/coder/pull/2159/files#diff-bc904829e61be3669efa87d9f79fe9137ea288eebef74d7ae9c87cfab9833c43
templates.sql https://github.com/coder/coder/pull/2159/files#diff-108d82429a28748156d0f41400391e8b5416884547004a7e61316e5f4d660b10
templates.go https://github.com/coder/coder/pull/2159/files#diff-e4edd7bef5348b67fe6c9300916271983bdd479bc511c50f1723854dd737e727
templates_test.go https://github.com/coder/coder/pull/2159/files#diff-e6cfa554f43c7f7e93de71c7907304a88a8040eddbeeaea86e80fcb7baa5efec
templates.go https://github.com/coder/coder/pull/2159/files#diff-b9e34422b1b14571ab97a9e8f1d061337aebbc749c251f5adcd13ddcada9d4b1
typesGenerated.ts https://github.com/coder/coder/pull/2159/files#diff-0db594bd57651eba54a837eab00864ea5f931dfdf058eb3dc3b9e2e211fa6e7a
cli/templateedit.gohttps://github.com/coder/coder/pull/2159/files#diff-d448ce6a6c68a87b08ad6400a14654a82e0c293acb2e4361b1ed951e6fa35dc7
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/cli/templateedit.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/2159/{{ revealButtonHref }}
cli/templateedit_test.gohttps://github.com/coder/coder/pull/2159/files#diff-087e6c191c7c8e24258dae57dfe0c1c23b094fd24f2936dd11497d378ead311a
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/cli/templateedit_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/2159/{{ revealButtonHref }}
cli/templates.gohttps://github.com/coder/coder/pull/2159/files#diff-d5b684096dfa0c61b293f31a2a49ae5b74dc085b79088f6cf50d532e3f08e29f
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/cli/templates.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/2159/{{ revealButtonHref }}
https://github.com/coder/coder/pull/2159/files#diff-d5b684096dfa0c61b293f31a2a49ae5b74dc085b79088f6cf50d532e3f08e29f
https://github.com/coder/coder/pull/2159/files#diff-d5b684096dfa0c61b293f31a2a49ae5b74dc085b79088f6cf50d532e3f08e29f
coderd/coderd.gohttps://github.com/coder/coder/pull/2159/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/coderd/coderd.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/2159/{{ revealButtonHref }}
https://github.com/coder/coder/pull/2159/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
https://github.com/coder/coder/pull/2159/files#diff-cae99a4758751d753f0ebcc421c2e10c55cbdc9cc6a08bfd89a7eb970db55f36
coderd/database/databasefake/databasefake.gohttps://github.com/coder/coder/pull/2159/files#diff-7d8285434c7381493f3ec8aa6c8671699af10be17b34acf10d576495f1de16f9
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/coderd/database/databasefake/databasefake.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/2159/{{ revealButtonHref }}
https://github.com/coder/coder/pull/2159/files#diff-7d8285434c7381493f3ec8aa6c8671699af10be17b34acf10d576495f1de16f9
https://github.com/coder/coder/pull/2159/files#diff-7d8285434c7381493f3ec8aa6c8671699af10be17b34acf10d576495f1de16f9
coderd/database/querier.gohttps://github.com/coder/coder/pull/2159/files#diff-a96e7cef920f37ba1f1032eba4b241d1a9a06bc2089062b4ed3b1aa73c6bcd48
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/coderd/database/querier.go
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
coderd/database/queries.sql.gohttps://github.com/coder/coder/pull/2159/files#diff-bc904829e61be3669efa87d9f79fe9137ea288eebef74d7ae9c87cfab9833c43
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/coderd/database/queries.sql.go
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
coderd/database/queries/templates.sqlhttps://github.com/coder/coder/pull/2159/files#diff-108d82429a28748156d0f41400391e8b5416884547004a7e61316e5f4d660b10
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/coderd/database/queries/templates.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/2159/{{ revealButtonHref }}
https://github.com/coder/coder/pull/2159/files#diff-108d82429a28748156d0f41400391e8b5416884547004a7e61316e5f4d660b10
coderd/templates.gohttps://github.com/coder/coder/pull/2159/files#diff-e4edd7bef5348b67fe6c9300916271983bdd479bc511c50f1723854dd737e727
View file https://github.com/coder/coder/blob/b71792cfc9628df7907ff81078de9a3b480fc266/coderd/templates.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/2159/{{ revealButtonHref }}
https://github.com/coder/coder/pull/2159/files#diff-e4edd7bef5348b67fe6c9300916271983bdd479bc511c50f1723854dd737e727
mafredrihttps://github.com/mafredri
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892416776
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
johnstcnhttps://github.com/johnstcn
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892417724
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
mafredrihttps://github.com/mafredri
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892439262
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
johnstcnhttps://github.com/johnstcn
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892439946
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
Emyrkhttps://github.com/Emyrk
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892667428
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@mafredrihttps://github.com/mafredri
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
mafredrihttps://github.com/mafredri
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892282804
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
johnstcnhttps://github.com/johnstcn
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892303025
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
mafredrihttps://github.com/mafredri
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892325286
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
johnstcnhttps://github.com/johnstcn
Jun 8, 2022https://github.com/coder/coder/pull/2159/files#r892327519
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
https://github.com/coder/coder/pull/2159/files#diff-e4edd7bef5348b67fe6c9300916271983bdd479bc511c50f1723854dd737e727
Please reload this pagehttps://github.com/coder/coder/pull/2159/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.