Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Ubuntu Translators instructions and Chinese (Simplified) guidelines.

These translations are shared with snapd trunk series template snappy.

3342 of 815 results
33.

The get command prints configuration options for the current snap.

$ snapctl get username
frank

If multiple option names are provided, a document is returned:

$ snapctl get username password
{
"username": "frank",
"password": "..."
}

Nested values may be retrieved via a dotted path:

$ snapctl get author.name
frank

Values of interface connection settings may be printed with:

$ snapctl get :myplug usb-vendor
$ snapctl get :myslot path

This will return the named setting from the local interface endpoint, whether a plug
or a slot. Returning the setting from the connected snap's endpoint is also possible
by explicitly requesting that via the --plug and --slot command line options:

$ snapctl get :myplug --slot usb-vendor

This requests the "usb-vendor" setting from the slot that is connected to "myplug".
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
(no translation yet)
Located in overlord/hookstate/ctlcmd/get.go:52
34.

The get command prints configuration options for the provided snap.

$ snap get snap-name username
frank

If multiple option names are provided, the corresponding values are returned:

$ snap get snap-name username password
Key Value
username frank
password ...

Nested values may be retrieved via a dotted path:

$ snap get snap-name author.name
frank
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
(no translation yet)
Located in cmd/snap/cmd_get.go:34
35.

The help command displays information about snap commands.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

help 命令将会输出有关一个 snap 命令的信息
Translated by Harry Chen
Reviewed by Harry Chen
Located in cmd/snap/cmd_help.go:36
36.

The info command shows detailed information about snaps.

The snaps can be specified by name or by path; names are looked for both in the
store and in the installed snaps; paths can refer to a .snap file, or to a
directory that contains an unpacked snap suitable for 'snap try' (an example
of this would be the 'prime' directory snapcraft produces).
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

info 命令显示有关 snap 的详细信息。

可以通过名称或路径指定 snap ; 在商店和已安装的 snap 中查找名称;
路径可以引用 .snap 文件,或者指向包含适合“快照尝试”的解压缩快照
的目录(如 snapcraft 生成的 “prime” 目录)。
Translated and reviewed by Luke Na
Located in cmd/snap/cmd_info.go:59
37.

The install command installs the named snaps on the system.

To install multiple instances of the same snap, append an underscore and a
unique identifier (for each instance) to a snap's name.

With no further options, the snaps are installed tracking the stable channel,
with strict security confinement.

Revision choice via the --revision override requires the user to
have developer access to the snap, either directly or through the
store's collaboration feature, and to be logged in (see 'snap help login').

Note that a later refresh will typically undo a revision override, taking the snap
back to the current revision of the channel it's tracking.

Use --name to set the instance name when installing from snap file.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

“install” 命令可在系统上安装指定的 Snap 软件包。

要安装同一 Snap 的多个实例,请将下划线和唯一标识符(对于每个实例)附加到
Snap 的名称后面。

如果没有其他选项,则 Snap 会安装到稳定通道,并进行严格的安全约束。

通过“--revision” 覆盖进行版本选择需要用户具有对 Snap 的开发者访问权限,可以通过直接访问或通过商店的协作功能获得,并且必须已登录(请参见“snap help login”)。

请注意,稍后的刷新通常会撤消版本覆盖,将 Snap 回滚到其正在跟踪的通道的当前版本。

在从 Snap 文件安装时使用“--name”来设置实例名称。
Translated by Luke Na
Located in cmd/snap/cmd_snap_op.go:52
38.

The interface command shows details of snap interfaces.

If no interface name is provided, a list of interface names with at least
one connection is shown, or a list of all interfaces if --all is provided.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

interface 命令显示 snap 接口的详细信息。

如果未提供接口名称,则显示包含至少一个连接的接口名称列表,或者如果
提供了 --all 参数,则显示所有接口的列表。
Translated by Luke Na
Located in cmd/snap/cmd_interface.go:45
39.

The interfaces command lists interfaces available in the system.

By default all slots and plugs, used and offered by all snaps, are displayed.

$ snap interfaces <snap>:<slot or plug>

Lists only the specified slot or plug.

$ snap interfaces <snap>

Lists the slots offered and plugs used by the specified snap.

$ snap interfaces -i=<interface> [<snap>]

Filters the complete output so only plugs and/or slots matching the provided
details are listed.

NOTE this command is deprecated and has been replaced with the 'connections'
command.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.

interfaces 命令列出系统中可用的接口。

默认情况下,显示所有快照使用和提供的插槽和插口。

$snap interfaces <快照>:<插槽或插口>

仅列出指定的插槽或插口。

$snap interfaces <snap>

列出指定快照提供的插槽和使用的插口。

$snap interfaces -i=<接口> [<snap>]

筛选完整的输出,仅列出与提供的详细信息匹配的插槽和/或插口。

注意:此命令已弃用,已被“connections”命令替代。
Translated by Luke Na
Located in cmd/snap/cmd_interfaces.go:40
40.

The is-connected command returns success if the given plug or slot of the
calling snap is connected, and failure otherwise.

$ snapctl is-connected plug
$ echo $?
1

Snaps can only query their own plugs and slots - snap name is implicit and
implied by the snapctl execution context.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

is-connected命令在给定插槽或插口已连接到调用的快照时返回成功,否则返回失败。

$ snapctl is-connected plug
$ echo $?
1

快照只能查询自己的插槽和插口 - 快照名称是隐式的,并且由 snapctl 执行上下文暗示。
Translated by Luke Na
Located in overlord/hookstate/ctlcmd/is_connected.go:40
41.

The keys command lists cryptographic keys that can be used for signing
assertions.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

keys 命令列出可用于签署声明 的加密密钥。
Translated by Luke Na
Located in cmd/snap/cmd_keys.go:39
42.

The known command shows known assertions of the provided type.
If header=value pairs are provided after the assertion type, the assertions
shown must also have the specified headers matching the provided values.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

known 命令显示所提供类型的已知声明 。
如果在声明 类型之后提供了 header=value 对,则显示的声明 还必须具有与提供的值匹配的指定标头。
Translated by Luke Na
Located in cmd/snap/cmd_known.go:49
3342 of 815 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Dong Cansheng, Harry Chen, Kakurady Drakenar, Larry Wei, Luis Lee, Luke Na, Nick Zheng, Yulin Yang, handsome_feng, yuzhe, 小菜鸟儿.