This repository was archived by the owner on Mar 4, 2022. It is now read-only.
forked from thought-machine/please
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickstart.html
More file actions
167 lines (143 loc) · 4.31 KB
/
quickstart.html
File metadata and controls
167 lines (143 loc) · 4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<h1 class="title-1">Please quickstart</h1>
<section class="mt4">
<h2 class="title-2">System requirements</h2>
<p>
Please supports Linux, macOS and FreeBSD at the moment. The included build
rules require
<a
class="copy-link"
href="https://www.gnu.org/software/coreutils/"
target="_blank"
rel="noopener"
>core utils</a
>
and aim to be portable between recent distributions of these platforms.
</p>
</section>
<section class="mt4">
<h2 class="title-2">Installing</h2>
<p><code class="code">curl https://get.please.build | bash</code></p>
<p>
This will download and install the latest version of Please on your
system.<br />
It also adds itself to your <code class="code">PATH</code>; you may need to
<code class="code">source ~/.bashrc</code> or
<code class="code">source ~/.zshrc</code> after install to get that updated.
</p>
<p>
If you're using
<a class="copy-link" href="https://brew.sh" target="_blank" rel="noopener"
>Homebrew</a
>, you can install using that:
</p>
<pre class="code-container">
<!-- prettier-ignore -->
<code>
brew tap thought-machine/please
brew install please
</code>
</pre>
<p>
Finally, if you'd prefer more manual installation, grab a tarball off
<a
class="copy-link"
href="https://github.com/thought-machine/please/releases"
target="_blank"
rel="noopener"
>our releases page</a
>
and extract it yourself; it normally lives in
<code class="code">~/.please</code> but you can put it where you want.
</p>
<p>See <a class="copy-link" href="faq.html#verify">here</a> for information if you'd like to verify
signatures of the download before running.</p>
<p>
When you run <code>plz init</code>, Please will create a
<code class="code">pleasew</code> script in the
repository root which can subsequently be used to download and run please.
</p>
</section>
<section class="mt4">
<h2 class="title-2">Shell completion</h2>
<p>Please comes with a completion script for Bash and zsh built-in.</p>
<p>
You can produce it by running
<code class="code">plz --completion_script</code>. This is handy to add to
your <code class="code">.bashrc</code> or <code class="code">.zshrc</code>,
for example:
</p>
<pre class="code-container">
<!-- prettier-ignore -->
<code>
source <(plz --completion_script)
</code>
</pre>
<p>
The script will complete
<a class="copy-link" href="/commands.html">subcommands and flags</a>
but most relevantly can also complete build labels by reading BUILD files
for you.
</p>
</section>
<section class="mt4">
<h2 class="title-2">
BUILD file Language Protocol Server
</h2>
<p>
Please ships with a language server for build files. It follows the
<a
class="copy-link"
href="https://langserver.org/"
target="_blank"
rel="noopener"
>language server protocol</a
>
from VS Code.
</p>
<p>
To use LPS, simply download the language server protocol plugin for your
favourite editor, and run the binary with the command
<code class="code">plz tool lps</code>.
</p>
<p>
Currently LPS supports auto-completion (this works with build labels too!),
hover, goto definition, diagnostics, signature help, auto-formatting and
references.
</p>
</section>
<section class="mt4">
<h2 class="title-2">Getting started</h2>
<p>
Run <code class="code">plz init</code> at the root of your repo to create
the .plzconfig file. There are many options that can be configured in this
file but you can worry about them later - the defaults should be fine to
begin with.
</p>
</section>
<section class="mt4">
<h2 class="title-2">More info</h2>
<p>
If you want more information on Please, you can raise issues on
<a
class="copy-link"
href="https://github.com/thought-machine/please"
target="_blank"
rel="noopener"
>Github</a
>
or catch us on
<a
class="copy-link"
href="https://gitter.im/please-build/Lobby"
target="_blank"
rel="noopener"
>Gitter</a
>
to ask questions.
</p>
</section>
<div class="pagination">
<div class="pagination__next">
<a class="copy-link" href="/codelabs.html">Codelabs</a>
</div>
</div>