hopper-cli 1.2.1__tar.gz → 1.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hopper-cli
3
- Version: 1.2.1
3
+ Version: 1.3.1
4
4
  Summary: A git-like CLI for tutors on the hopper platform.
5
5
  Author: hopper contributors
6
6
  License-Expression: AGPL-3.0-or-later
@@ -37,31 +37,45 @@ A git-like CLI for tutors on the [hopper](https://codeberg.org/hopper/cli)
37
37
  platform. It wraps `git` and the hopper orchestration services to safely
38
38
  pull, grade, and push all of a tutor's assigned student repositories.
39
39
 
40
+ Admins can use the CLI for any course and operate on all its student
41
+ repositories, even when enrolled as a student or assigned as a tutor there.
42
+
40
43
  ## Installation
41
44
 
42
- Install via **pipx** or **pip**, or grab a prebuilt binary from the
45
+ Install via **[uv](https://docs.astral.sh/uv/getting-started/installation/)**
46
+ (recommended) or **[pipx](https://pipx.pypa.io/stable/installation/)**, or grab
47
+ a prebuilt binary from the
43
48
  [Forgejo releases page](https://codeberg.org/hopper/cli/releases). Do **not**
44
49
  install via `go install` or build from source unless you are developing
45
50
  hopper — see [Development](#development) for why.
46
51
 
47
- **pipx** (recommended, installs an isolated executable):
52
+ **uv** (recommended, installs an isolated executable):
48
53
 
49
54
  ```
50
- pipx install hopper-cli
55
+ uv tool install hopper-cli
51
56
  ```
52
57
 
53
- or with **pip**:
58
+ or with **pipx** (also installs an isolated executable):
54
59
 
55
60
  ```
56
- pip install hopper-cli
61
+ pipx install hopper-cli
57
62
  ```
58
63
 
59
64
  To upgrade later:
60
65
 
61
66
  ```
62
- pipx upgrade hopper-cli # or: pip install --upgrade hopper-cli
67
+ uv tool upgrade hopper-cli
68
+ pipx upgrade hopper-cli
63
69
  ```
64
70
 
71
+ Use the upgrade command matching how you installed hopper.
72
+
73
+ Avoid installing directly with `pip`: it installs into the active Python
74
+ environment and may conflict with other packages or be blocked by a
75
+ system-managed Python installation. Use uv or pipx for an isolated installation.
76
+ If you already installed hopper with pip, update it with
77
+ `pip install --upgrade hopper-cli` in that same environment.
78
+
65
79
  ### Prebuilt binaries
66
80
 
67
81
  Prebuilt binaries for recent releases are available on the
@@ -204,7 +218,7 @@ Requires [Go](https://go.dev) (see `go.mod` for the minimum version) and
204
218
  > ldflags produces a binary with a wrong/fallback version string
205
219
  > (`v0.1.0` or `dev`). This breaks `hopper version`, the CLI's self-upgrade
206
220
  > check, and the server-side minimum-version gate. End users should install
207
- > via **pipx**/**pip** or the prebuilt release binaries instead — see
221
+ > via **uv**/**pipx** or the prebuilt release binaries instead — see
208
222
  > [Installation](#installation). If you do build from source, always inject
209
223
  > the version as shown below.
210
224
 
@@ -232,3 +246,17 @@ The version is injected at build time via ldflags:
232
246
  ```
233
247
  go build -ldflags "-X codeberg.org/hopper/cli/internal/cmd.Version=vX.Y.Z" -o hopper ./cmd/hopper/
234
248
  ```
249
+
250
+ ### User-facing output
251
+
252
+ Use `internal/ui` for messages so commands share the same styling and spacing:
253
+
254
+ - `Success` marks completed actions; `Info` is for neutral progress and hints.
255
+ - `Warn` and `Error` write diagnostics to stderr. Keep recovery instructions in
256
+ the same message so they stay with the error when output is redirected.
257
+ - Message helpers terminate output with one newline and indent multiline
258
+ details beneath the message text.
259
+ - `Section` prints only a heading. Use `Break` once between output blocks,
260
+ never before the first heading or after the last message.
261
+ - Keep raw output such as the version line unstyled.
262
+ - Disable ANSI styling for redirected output, `NO_COLOR`, and `TERM=dumb`.
@@ -9,31 +9,45 @@ A git-like CLI for tutors on the [hopper](https://codeberg.org/hopper/cli)
9
9
  platform. It wraps `git` and the hopper orchestration services to safely
10
10
  pull, grade, and push all of a tutor's assigned student repositories.
11
11
 
12
+ Admins can use the CLI for any course and operate on all its student
13
+ repositories, even when enrolled as a student or assigned as a tutor there.
14
+
12
15
  ## Installation
13
16
 
14
- Install via **pipx** or **pip**, or grab a prebuilt binary from the
17
+ Install via **[uv](https://docs.astral.sh/uv/getting-started/installation/)**
18
+ (recommended) or **[pipx](https://pipx.pypa.io/stable/installation/)**, or grab
19
+ a prebuilt binary from the
15
20
  [Forgejo releases page](https://codeberg.org/hopper/cli/releases). Do **not**
16
21
  install via `go install` or build from source unless you are developing
17
22
  hopper — see [Development](#development) for why.
18
23
 
19
- **pipx** (recommended, installs an isolated executable):
24
+ **uv** (recommended, installs an isolated executable):
20
25
 
21
26
  ```
22
- pipx install hopper-cli
27
+ uv tool install hopper-cli
23
28
  ```
24
29
 
25
- or with **pip**:
30
+ or with **pipx** (also installs an isolated executable):
26
31
 
27
32
  ```
28
- pip install hopper-cli
33
+ pipx install hopper-cli
29
34
  ```
30
35
 
31
36
  To upgrade later:
32
37
 
33
38
  ```
34
- pipx upgrade hopper-cli # or: pip install --upgrade hopper-cli
39
+ uv tool upgrade hopper-cli
40
+ pipx upgrade hopper-cli
35
41
  ```
36
42
 
43
+ Use the upgrade command matching how you installed hopper.
44
+
45
+ Avoid installing directly with `pip`: it installs into the active Python
46
+ environment and may conflict with other packages or be blocked by a
47
+ system-managed Python installation. Use uv or pipx for an isolated installation.
48
+ If you already installed hopper with pip, update it with
49
+ `pip install --upgrade hopper-cli` in that same environment.
50
+
37
51
  ### Prebuilt binaries
38
52
 
39
53
  Prebuilt binaries for recent releases are available on the
@@ -176,7 +190,7 @@ Requires [Go](https://go.dev) (see `go.mod` for the minimum version) and
176
190
  > ldflags produces a binary with a wrong/fallback version string
177
191
  > (`v0.1.0` or `dev`). This breaks `hopper version`, the CLI's self-upgrade
178
192
  > check, and the server-side minimum-version gate. End users should install
179
- > via **pipx**/**pip** or the prebuilt release binaries instead — see
193
+ > via **uv**/**pipx** or the prebuilt release binaries instead — see
180
194
  > [Installation](#installation). If you do build from source, always inject
181
195
  > the version as shown below.
182
196
 
@@ -204,3 +218,17 @@ The version is injected at build time via ldflags:
204
218
  ```
205
219
  go build -ldflags "-X codeberg.org/hopper/cli/internal/cmd.Version=vX.Y.Z" -o hopper ./cmd/hopper/
206
220
  ```
221
+
222
+ ### User-facing output
223
+
224
+ Use `internal/ui` for messages so commands share the same styling and spacing:
225
+
226
+ - `Success` marks completed actions; `Info` is for neutral progress and hints.
227
+ - `Warn` and `Error` write diagnostics to stderr. Keep recovery instructions in
228
+ the same message so they stay with the error when output is redirected.
229
+ - Message helpers terminate output with one newline and indent multiline
230
+ details beneath the message text.
231
+ - `Section` prints only a heading. Use `Break` once between output blocks,
232
+ never before the first heading or after the last message.
233
+ - Keep raw output such as the version line unstyled.
234
+ - Disable ANSI styling for redirected output, `NO_COLOR`, and `TERM=dumb`.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hopper-cli
3
- Version: 1.2.1
3
+ Version: 1.3.1
4
4
  Summary: A git-like CLI for tutors on the hopper platform.
5
5
  Author: hopper contributors
6
6
  License-Expression: AGPL-3.0-or-later
@@ -37,31 +37,45 @@ A git-like CLI for tutors on the [hopper](https://codeberg.org/hopper/cli)
37
37
  platform. It wraps `git` and the hopper orchestration services to safely
38
38
  pull, grade, and push all of a tutor's assigned student repositories.
39
39
 
40
+ Admins can use the CLI for any course and operate on all its student
41
+ repositories, even when enrolled as a student or assigned as a tutor there.
42
+
40
43
  ## Installation
41
44
 
42
- Install via **pipx** or **pip**, or grab a prebuilt binary from the
45
+ Install via **[uv](https://docs.astral.sh/uv/getting-started/installation/)**
46
+ (recommended) or **[pipx](https://pipx.pypa.io/stable/installation/)**, or grab
47
+ a prebuilt binary from the
43
48
  [Forgejo releases page](https://codeberg.org/hopper/cli/releases). Do **not**
44
49
  install via `go install` or build from source unless you are developing
45
50
  hopper — see [Development](#development) for why.
46
51
 
47
- **pipx** (recommended, installs an isolated executable):
52
+ **uv** (recommended, installs an isolated executable):
48
53
 
49
54
  ```
50
- pipx install hopper-cli
55
+ uv tool install hopper-cli
51
56
  ```
52
57
 
53
- or with **pip**:
58
+ or with **pipx** (also installs an isolated executable):
54
59
 
55
60
  ```
56
- pip install hopper-cli
61
+ pipx install hopper-cli
57
62
  ```
58
63
 
59
64
  To upgrade later:
60
65
 
61
66
  ```
62
- pipx upgrade hopper-cli # or: pip install --upgrade hopper-cli
67
+ uv tool upgrade hopper-cli
68
+ pipx upgrade hopper-cli
63
69
  ```
64
70
 
71
+ Use the upgrade command matching how you installed hopper.
72
+
73
+ Avoid installing directly with `pip`: it installs into the active Python
74
+ environment and may conflict with other packages or be blocked by a
75
+ system-managed Python installation. Use uv or pipx for an isolated installation.
76
+ If you already installed hopper with pip, update it with
77
+ `pip install --upgrade hopper-cli` in that same environment.
78
+
65
79
  ### Prebuilt binaries
66
80
 
67
81
  Prebuilt binaries for recent releases are available on the
@@ -204,7 +218,7 @@ Requires [Go](https://go.dev) (see `go.mod` for the minimum version) and
204
218
  > ldflags produces a binary with a wrong/fallback version string
205
219
  > (`v0.1.0` or `dev`). This breaks `hopper version`, the CLI's self-upgrade
206
220
  > check, and the server-side minimum-version gate. End users should install
207
- > via **pipx**/**pip** or the prebuilt release binaries instead — see
221
+ > via **uv**/**pipx** or the prebuilt release binaries instead — see
208
222
  > [Installation](#installation). If you do build from source, always inject
209
223
  > the version as shown below.
210
224
 
@@ -232,3 +246,17 @@ The version is injected at build time via ldflags:
232
246
  ```
233
247
  go build -ldflags "-X codeberg.org/hopper/cli/internal/cmd.Version=vX.Y.Z" -o hopper ./cmd/hopper/
234
248
  ```
249
+
250
+ ### User-facing output
251
+
252
+ Use `internal/ui` for messages so commands share the same styling and spacing:
253
+
254
+ - `Success` marks completed actions; `Info` is for neutral progress and hints.
255
+ - `Warn` and `Error` write diagnostics to stderr. Keep recovery instructions in
256
+ the same message so they stay with the error when output is redirected.
257
+ - Message helpers terminate output with one newline and indent multiline
258
+ details beneath the message text.
259
+ - `Section` prints only a heading. Use `Break` once between output blocks,
260
+ never before the first heading or after the last message.
261
+ - Keep raw output such as the version line unstyled.
262
+ - Disable ANSI styling for redirected output, `NO_COLOR`, and `TERM=dumb`.
File without changes
File without changes
File without changes
File without changes