Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gzupanda
code-server
提交
88b8cff8
C
code-server
项目概览
gzupanda
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
88b8cff8
编写于
12月 14, 2020
作者:
A
Anmol Sethi
提交者:
GitHub
12月 14, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2427 from cdr/link-docs-0cc3
cli: Show beta flags in help output
上级
9efdec87
affb92f2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
31 deletion
+21
-31
README.md
README.md
+2
-2
src/node/cli.ts
src/node/cli.ts
+19
-29
未找到文件。
README.md
浏览文件 @
88b8cff8
...
@@ -33,10 +33,10 @@ When done, the install script prints out instructions for running and starting c
...
@@ -33,10 +33,10 @@ When done, the install script prints out instructions for running and starting c
We also have an in-depth
[
setup and configuration
](
./doc/guide.md
)
guide.
We also have an in-depth
[
setup and configuration
](
./doc/guide.md
)
guide.
###
Alpha Program 🐣
###
Cloud Program ☁️
We're working on a cloud platform that makes deploying and managing code-server easier.
We're working on a cloud platform that makes deploying and managing code-server easier.
Consider
updating to the latest version and running code-server with our experimental
flag
`--link`
if you don't want to worry about
Consider
running code-server with the beta
flag
`--link`
if you don't want to worry about
-
TLS
-
TLS
-
Authentication
-
Authentication
...
...
src/node/cli.ts
浏览文件 @
88b8cff8
...
@@ -74,7 +74,7 @@ interface Option<T> {
...
@@ -74,7 +74,7 @@ interface Option<T> {
description
?:
string
description
?:
string
/**
/**
* If marked as beta, the option is
not printed unless $CS_BETA is set
.
* If marked as beta, the option is
marked as beta in help
.
*/
*/
beta
?:
boolean
beta
?:
boolean
}
}
...
@@ -193,8 +193,6 @@ const options: Options<Required<Args>> = {
...
@@ -193,8 +193,6 @@ const options: Options<Required<Args>> = {
Securely bind code-server via Coder Cloud with the passed name. You'll get a URL like
Securely bind code-server via Coder Cloud with the passed name. You'll get a URL like
https://myname.coder-cloud.com at which you can easily access your code-server instance.
https://myname.coder-cloud.com at which you can easily access your code-server instance.
Authorization is done via GitHub.
Authorization is done via GitHub.
This is presently beta and requires being accepted for testing.
See https://github.com/cdr/code-server/discussions/2137
`
,
`
,
beta
:
true
,
beta
:
true
,
},
},
...
@@ -209,32 +207,24 @@ export const optionDescriptions = (): string[] => {
...
@@ -209,32 +207,24 @@ export const optionDescriptions = (): string[] => {
}),
}),
{
short
:
0
,
long
:
0
},
{
short
:
0
,
long
:
0
},
)
)
return
entries
return
entries
.
map
(([
k
,
v
])
=>
{
.
filter
(([,
v
])
=>
{
const
help
=
`
${
"
"
.
repeat
(
widths
.
short
-
(
v
.
short
?
v
.
short
.
length
:
0
))}${
v
.
short
?
`-
${
v
.
short
}
`
:
"
"
}
--
${
k
}
`
// If CS_BETA is set, we show beta options but if not, then we do not want
return
(
// to show beta options.
help
+
return
process
.
env
.
CS_BETA
||
!
v
.
beta
v
.
description
})
?.
trim
()
.
map
(([
k
,
v
])
=>
{
.
split
(
/
\n
/
)
const
help
=
`
${
"
"
.
repeat
(
widths
.
short
-
(
v
.
short
?
v
.
short
.
length
:
0
))}${
.
map
((
line
,
i
)
=>
{
v
.
short
?
`-
${
v
.
short
}
`
:
"
"
line
=
line
.
trim
()
}
--
${
k
}
`
if
(
i
===
0
)
{
return
(
return
"
"
.
repeat
(
widths
.
long
-
k
.
length
)
+
(
v
.
beta
?
"
(beta)
"
:
""
)
+
line
help
+
}
v
.
description
return
"
"
.
repeat
(
widths
.
long
+
widths
.
short
+
6
)
+
line
?.
trim
()
})
.
split
(
/
\n
/
)
.
join
(
"
\n
"
)
+
.
map
((
line
,
i
)
=>
{
(
typeof
v
.
type
===
"
object
"
?
` [
${
Object
.
values
(
v
.
type
).
join
(
"
,
"
)}
]`
:
""
)
line
=
line
.
trim
()
)
if
(
i
===
0
)
{
})
return
"
"
.
repeat
(
widths
.
long
-
k
.
length
)
+
line
}
return
"
"
.
repeat
(
widths
.
long
+
widths
.
short
+
6
)
+
line
})
.
join
(
"
\n
"
)
+
(
typeof
v
.
type
===
"
object
"
?
` [
${
Object
.
values
(
v
.
type
).
join
(
"
,
"
)}
]`
:
""
)
)
})
}
}
export
const
parse
=
(
export
const
parse
=
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录