OpenSUSE安装 arcanist
Posted 苏见微
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OpenSUSE安装 arcanist相关的知识,希望对你有一定的参考价值。
OpenSUSE安装 arcanist
系统版本:leap 15.2
首先,安装 php
sudo zypper in php7
然后,安装 arcanist
安装 arcanist 时,会自动安装其所依赖的 php7-curl
jo@suse:~> sudo zypper in arcanist
正在加载软件源数据...
正在读取已安装的软件包...
正在解决软件包依赖关系...
将安装以下 2 个新软件包:
arcanist php7-curl
2 个软件包将新装.
总下载大小:1.4 MiB。已缓存:0 B。 操作完成后,将使用额外的 8.7 MiB。
继续吗? [y/n/v/...? 显示全部选项] (y): y
正在撷取 软件包 php7-curl-7.4.6-lp152.2.15.1.x86_64 (1/2), 65.6 KiB (解压后 99.3 KiB)
正在检索: php7-curl-7.4.6-lp152.2.15.1.x86_64.rpm .....................................[完毕]
正在撷取 软件包 arcanist-0.0~git.20200426T084008~b81818b2-lp152.1.1.noarch
(2/2), 1.4 MiB (解压后 8.6 MiB)
正在检索: arcanist-0.0~git.20200426T084008~b81818b2-lp152.1.1.noarch.rpm [完毕 (408.7 KiB/s)]
正在检查文件冲突: .....................................................................[完毕]
(1/2) 正在安装:php7-curl-7.4.6-lp152.2.15.1.x86_64 ....................................[完毕]
(2/2) 正在安装:arcanist-0.0~git.20200426T084008~b81818b2-lp152.1.1.noarch .............[完毕]
检查 arcanist 是否安装成功
jo@suse:~> arc help
NAME
arc
WORKFLOWS
alias
alias command target -- [arguments]
Create and modify command aliases.
amend [options] --
Amend the working copy, synchronizing the local commit message.
anoid
Pilot a probe from the vessel "Arcanoid".
bookmarks
Show an enhanced view of bookmarks in the working copy.
branches
Show an enhanced view of branches in the working copy.
browse [options] -- target ...
browse -- file-name
browse -- object-name
Open a file or object in a local web browser.
call-conduit -- method
Call Conduit API methods.
close-revision
close-revision [options] revision
commit
commit [--revision revision_id] [--show]
cover
cover [--rev revision] [path ...]
diff
diff [paths] (svn)
diff [commit] (git, hg)
download [options] -- file
Download a file to local disk.
export
export [paths] format (svn)
export [commit_range] format (git, hg)
export --revision revision_id format
export --diff diff_id format
get-config
get-config [options] -- [name ...]
help [command]
Show this help, or workflow help for command.
inspect [options] -- object
Show internal object information.
install-certificate
install-certificate [uri]
land [options] -- [ref ...]
Publish reviewed changes.
liberate
liberate [path]
Create or update an Arcanist library.
lint
lint [options] [paths]
lint [options] --rev [rev]
linters
linters [options] [name]
list
list
look
look [options] -- thing
You stand in the middle of a small clearing.
paste [options] --
paste [options] -- object
patch
patch D12345
patch --revision revision_id
patch --diff diff_id
patch --patch file
patch --arcbundle bundlefile
prompts workflow
set-config
set-config [options] -- name value
shell-complete
Install shell completion.
tasks
tasks [options]
todo
todo summary [options]
unit
unit [options] [paths]
unit [options] --rev [rev]
upgrade
Upgrade Arcanist to the latest version.
upload [options] -- file [file ...]
Upload files.
version
Show toolset version information.
weld [options] -- file file ...
Robustly fuse files together.
which
which [options] (svn)
which [options] [commit] (hg, git)
work [--start start] symbol
Begin or resume work.
OPTION REFERENCE
--conduit-token token
Use a specific authentication token.
--conduit-uri uri
Connect to Phabricator install specified by uri.
--config key=value
Specify a runtime configuration value.
--config-file path
Load one or more configuration files. If this flag is provided, the
system and user configuration files are ignored.
--library path
Load a library.
Use help command for a detailed command reference.
Use --show-standard-options to show additional options.
配置 arcanist
设置 arcanist 的编辑器
jo@suse:~> arc set-config editor "vim";
Set key "editor" = "vim" in user config (was null).
设置 arcanist 的 Phabricator 地址。注意,这个根据自己用的 Phabricator 决定。
jo@suse:~> arc set-config default http://project.pha.com/;
Set key "default" = "http://project.pha.com/" in user config (was null).
安装 arcanist 的 证书。这个需要到 Phabricator 中,找 API Token,然后复制到 需要填空的地方。
jo@suse:~> arc install-certificate;
CONNECT Connecting to "http://project.pha.com/api/"...
LOGIN TO PHABRICATOR
Open this page in your browser and login to Phabricator if necessary:
http://project.pha.com/conduit/login/
Then paste the API Token on that page below.
Paste API Token from that page: api-fnv1k7hxixd6gbzvp34ig6tbxkdd
You are installing a standard API token, but a CLI API token was expected. If you\'re writing a script, consider passing the token at runtime with --conduit-token instead of installing it.
Install this token anyway? [y/N] y
Writing ~/.arcrc...
SUCCESS! API Token installed.
安装完成了,可以用了 =_+
以上是关于OpenSUSE安装 arcanist的主要内容,如果未能解决你的问题,请参考以下文章