Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Devurl crud ops#60

Merged
Russtopia merged 5 commits intoupdate-dev-urls-for-api-changesfromdevurl-CRUD-ops
Jun 29, 2020
Merged

Conversation

Russtopia
Copy link

@RusstopiaRusstopia commentedJun 25, 2020
edited
Loading

This implements the new subcommands proposed in#57

Example Usage

$ ./coder urls russ-env1http://3000-russ-env1-admin.russtopia-rlmfuntoo.dogfood.c8s.io/ 3000 PRIVATE
$ ./coder urls create russ-env1 3001 --access=orgAdding devurl for port 3001$ ./coder urls russ-env1http://3000-russ-env1-admin.russtopia-rlmfuntoo.dogfood.c8s.io/ 3000 PRIVATEhttp://3001-russ-env1-admin.russtopia-rlmfuntoo.dogfood.c8s.io/ 3001 ORG
$ ./coder urls create russ-env1 3002 -a groupInvalid access levelUsage: coder urls create <env name> <port> [--access <level>]create/update a devurl for external accesscoder urls create flags:      -a, --access string   [private | org | authed | public] set devurl access (default "private")
$ ./coder urls del russ-env1 80002020-06-25 09:38:25 FATALNo devurl found for port 8000
$ ./coder urls -hUsage: coder urls <env name>get all development urls for external accessCommands:create  create/update a devurl for external accessdel     delete a devurl
$ ./coder urls create -hUsage: coder urls create <env name> <port> [--access <level>]create/update a devurl for external accesscoder urls create flags:      -a, --access string   [private | org | authed | public] set devurl access (default "private")
$ ./coder help urls delUsage: coder urls del <env name> <port>delete a devurl
$ ./coder urls create russ-env1 99999 -a=publicbad portUsage: coder urls create <env name> <port> [--a access]create/update a devurl for external accesscoder urls create flags:      -a, --access string   [private | org | authed | public] set devurl access (default "private")

@RusstopiaRusstopia linked an issueJun 25, 2020 that may beclosed by this pull request
Copy link

@wbobeirnewbobeirne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

My one request was addressed, ty sir 🙏

Russtopia reacted with laugh emoji
@RusstopiaRusstopiaforce-pushed thedevurl-CRUD-ops branch 4 times, most recently from0a79ef7 to22bffe8CompareJune 26, 2020 18:21
Desc: "get all development urls for external access",
Name: "create",
Usage: "<env name> <port> [--a access]",
Desc: "create/update a devurl for external access",
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I made it just --a, do you want it fully-spelled out ie., --access ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'd prefer--acess for the flag. If you also want the-a shorthand, we could usefl.StringVarP

Russtopia reacted with thumbs up emoji
@RusstopiaRusstopia requested a review fromscsmithrJune 26, 2020 19:09
Copy link
Contributor

@scsmithrscsmithr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Very minor comments, feel free to merge when addressed.

Desc: "get all development urls for external access",
Name: "create",
Usage: "<env name> <port> [--a access]",
Desc: "create/update a devurl for external access",
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'd prefer--acess for the flag. If you also want the-a shorthand, we could usefl.StringVarP

Russtopia reacted with thumbs up emoji
@RusstopiaRusstopia merged commit4c1d110 intoupdate-dev-urls-for-api-changesJun 29, 2020
@RusstopiaRusstopia deleted the devurl-CRUD-ops branchJuly 16, 2020 18:30
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@wbobeirnewbobeirnewbobeirne approved these changes

@scsmithrscsmithrscsmithr requested changes

@anthonyshullanthonyshullAwaiting requested review from anthonyshull

@ammarioammarioAwaiting requested review from ammario

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add create and del subcommands to manage devurls
3 participants
@Russtopia@wbobeirne@scsmithr

[8]ページ先頭

©2009-2025 Movatter.jp