hopper-cli 1.3.4__tar.gz → 1.3.5__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.3.4
3
+ Version: 1.3.5
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
@@ -124,6 +124,7 @@ All commands run **inside** that directory and never write outside it.
124
124
  | `hopper auth list` / `status` / `remove <id>` | Manage profiles. |
125
125
  | `hopper init [profile/]<course>` | Bind a new directory to a course. |
126
126
  | `hopper pull` | Clone or `pull --rebase --autostash` every assigned student repo. |
127
+ | `hopper logs` | Print the saved output of the most recent pull run. |
127
128
  | `hopper push [msg]` | Commit README changes, validate point schema, push. |
128
129
  | `hopper commit <msg>` | Commit without pushing (recovery path). |
129
130
  | `hopper status` | Per-student branch, ahead/behind, dirty state. |
@@ -163,17 +164,46 @@ hopper pull # sync all assigned student repos
163
164
  hopper pull --student alice # pull a single student by username
164
165
  hopper pull --only a,b,c # pull only the listed usernames
165
166
  hopper pull --prune # remove local repos of students no longer assigned
166
- hopper pull -j 8 # 8 concurrent git operations (default 4)
167
+ hopper pull -j 8 # 8 concurrent git operations (default 4, 2 for ssh remotes)
167
168
  ```
168
169
 
169
170
  - `--prune` removes local repos of students no longer assigned to you, after
170
171
  showing a preview and asking for confirmation; `--no-prune` skips pruning.
171
- - Per-repo failures are reported and skipped — one bad repo does not abort
172
- the whole run.
172
+ - Repos are synced concurrently, 4 at a time by default. When the instance's
173
+ clone URL uses ssh, the default is 2: bursts of concurrent ssh handshakes
174
+ can make the server reject some connections. Override with `-j`.
175
+ - Per-repo failures are reported and skipped, and one bad repo does not abort
176
+ the whole run. Repos that fail are retried once, serially, after the
177
+ concurrent pass, since transient ssh failures usually succeed on a second
178
+ try.
179
+ - The final report lists every repo that still failed together with its
180
+ error, and states that its local copy was NOT updated. For ssh
181
+ authentication errors (`Permission denied (publickey)`, `Too many
182
+ authentication failures`) it adds a hint to check `ssh-add -l` and the key
183
+ registration in your hopper profile.
184
+ - Every run's full output is saved to a log file under the user cache dir, so
185
+ a closed terminal does not lose a failure report. A failed run ends with
186
+ `Full output: <path>` pointing at that file; inspect it later with
187
+ `hopper logs`.
173
188
  - If the configured origin branch is missing but `origin/main` exists, hopper
174
189
  repairs the upstream automatically. Fresh clones with an invalid remote HEAD
175
190
  check out `main`; existing checkouts keep their local branch and changes.
176
191
 
192
+ ### `logs`
193
+
194
+ ```
195
+ hopper logs # print the saved output of the most recent pull run
196
+ hopper logs --path # print only the path to that file
197
+ ```
198
+
199
+ Each `hopper pull` writes its full terminal output to
200
+ `pull-<timestamp>.log` in the hopper logs directory under the user cache dir
201
+ (`~/.cache/hopper/logs/` on Linux, `~/Library/Caches/hopper/logs/` on macOS).
202
+ The file starts with a header (command line, timestamp, profile, course, exit
203
+ status) followed by the output exactly as it appeared in the terminal. Only
204
+ the 5 most recent logs are kept; older ones are deleted automatically. The
205
+ command does not touch the server, so it also works offline.
206
+
177
207
  ### `push` / `commit`
178
208
 
179
209
  ```
@@ -201,8 +231,8 @@ hopper info # course name/uid/id, profile, your user and role, exercises
201
231
  ## Version gate
202
232
 
203
233
  On every command that touches the server (everything except `auth`,
204
- `version`, and `help`), hopper asks the active profile's orchestration server
205
- for the minimum supported CLI version:
234
+ `version`, `logs`, and `help`), hopper asks the active profile's orchestration
235
+ server for the minimum supported CLI version:
206
236
 
207
237
  - **running version < minimum** → the CLI refuses to run and tells you to upgrade;
208
238
  - **running version >= minimum** → proceeds;
@@ -96,6 +96,7 @@ All commands run **inside** that directory and never write outside it.
96
96
  | `hopper auth list` / `status` / `remove <id>` | Manage profiles. |
97
97
  | `hopper init [profile/]<course>` | Bind a new directory to a course. |
98
98
  | `hopper pull` | Clone or `pull --rebase --autostash` every assigned student repo. |
99
+ | `hopper logs` | Print the saved output of the most recent pull run. |
99
100
  | `hopper push [msg]` | Commit README changes, validate point schema, push. |
100
101
  | `hopper commit <msg>` | Commit without pushing (recovery path). |
101
102
  | `hopper status` | Per-student branch, ahead/behind, dirty state. |
@@ -135,17 +136,46 @@ hopper pull # sync all assigned student repos
135
136
  hopper pull --student alice # pull a single student by username
136
137
  hopper pull --only a,b,c # pull only the listed usernames
137
138
  hopper pull --prune # remove local repos of students no longer assigned
138
- hopper pull -j 8 # 8 concurrent git operations (default 4)
139
+ hopper pull -j 8 # 8 concurrent git operations (default 4, 2 for ssh remotes)
139
140
  ```
140
141
 
141
142
  - `--prune` removes local repos of students no longer assigned to you, after
142
143
  showing a preview and asking for confirmation; `--no-prune` skips pruning.
143
- - Per-repo failures are reported and skipped — one bad repo does not abort
144
- the whole run.
144
+ - Repos are synced concurrently, 4 at a time by default. When the instance's
145
+ clone URL uses ssh, the default is 2: bursts of concurrent ssh handshakes
146
+ can make the server reject some connections. Override with `-j`.
147
+ - Per-repo failures are reported and skipped, and one bad repo does not abort
148
+ the whole run. Repos that fail are retried once, serially, after the
149
+ concurrent pass, since transient ssh failures usually succeed on a second
150
+ try.
151
+ - The final report lists every repo that still failed together with its
152
+ error, and states that its local copy was NOT updated. For ssh
153
+ authentication errors (`Permission denied (publickey)`, `Too many
154
+ authentication failures`) it adds a hint to check `ssh-add -l` and the key
155
+ registration in your hopper profile.
156
+ - Every run's full output is saved to a log file under the user cache dir, so
157
+ a closed terminal does not lose a failure report. A failed run ends with
158
+ `Full output: <path>` pointing at that file; inspect it later with
159
+ `hopper logs`.
145
160
  - If the configured origin branch is missing but `origin/main` exists, hopper
146
161
  repairs the upstream automatically. Fresh clones with an invalid remote HEAD
147
162
  check out `main`; existing checkouts keep their local branch and changes.
148
163
 
164
+ ### `logs`
165
+
166
+ ```
167
+ hopper logs # print the saved output of the most recent pull run
168
+ hopper logs --path # print only the path to that file
169
+ ```
170
+
171
+ Each `hopper pull` writes its full terminal output to
172
+ `pull-<timestamp>.log` in the hopper logs directory under the user cache dir
173
+ (`~/.cache/hopper/logs/` on Linux, `~/Library/Caches/hopper/logs/` on macOS).
174
+ The file starts with a header (command line, timestamp, profile, course, exit
175
+ status) followed by the output exactly as it appeared in the terminal. Only
176
+ the 5 most recent logs are kept; older ones are deleted automatically. The
177
+ command does not touch the server, so it also works offline.
178
+
149
179
  ### `push` / `commit`
150
180
 
151
181
  ```
@@ -173,8 +203,8 @@ hopper info # course name/uid/id, profile, your user and role, exercises
173
203
  ## Version gate
174
204
 
175
205
  On every command that touches the server (everything except `auth`,
176
- `version`, and `help`), hopper asks the active profile's orchestration server
177
- for the minimum supported CLI version:
206
+ `version`, `logs`, and `help`), hopper asks the active profile's orchestration
207
+ server for the minimum supported CLI version:
178
208
 
179
209
  - **running version < minimum** → the CLI refuses to run and tells you to upgrade;
180
210
  - **running version >= minimum** → proceeds;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hopper-cli
3
- Version: 1.3.4
3
+ Version: 1.3.5
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
@@ -124,6 +124,7 @@ All commands run **inside** that directory and never write outside it.
124
124
  | `hopper auth list` / `status` / `remove <id>` | Manage profiles. |
125
125
  | `hopper init [profile/]<course>` | Bind a new directory to a course. |
126
126
  | `hopper pull` | Clone or `pull --rebase --autostash` every assigned student repo. |
127
+ | `hopper logs` | Print the saved output of the most recent pull run. |
127
128
  | `hopper push [msg]` | Commit README changes, validate point schema, push. |
128
129
  | `hopper commit <msg>` | Commit without pushing (recovery path). |
129
130
  | `hopper status` | Per-student branch, ahead/behind, dirty state. |
@@ -163,17 +164,46 @@ hopper pull # sync all assigned student repos
163
164
  hopper pull --student alice # pull a single student by username
164
165
  hopper pull --only a,b,c # pull only the listed usernames
165
166
  hopper pull --prune # remove local repos of students no longer assigned
166
- hopper pull -j 8 # 8 concurrent git operations (default 4)
167
+ hopper pull -j 8 # 8 concurrent git operations (default 4, 2 for ssh remotes)
167
168
  ```
168
169
 
169
170
  - `--prune` removes local repos of students no longer assigned to you, after
170
171
  showing a preview and asking for confirmation; `--no-prune` skips pruning.
171
- - Per-repo failures are reported and skipped — one bad repo does not abort
172
- the whole run.
172
+ - Repos are synced concurrently, 4 at a time by default. When the instance's
173
+ clone URL uses ssh, the default is 2: bursts of concurrent ssh handshakes
174
+ can make the server reject some connections. Override with `-j`.
175
+ - Per-repo failures are reported and skipped, and one bad repo does not abort
176
+ the whole run. Repos that fail are retried once, serially, after the
177
+ concurrent pass, since transient ssh failures usually succeed on a second
178
+ try.
179
+ - The final report lists every repo that still failed together with its
180
+ error, and states that its local copy was NOT updated. For ssh
181
+ authentication errors (`Permission denied (publickey)`, `Too many
182
+ authentication failures`) it adds a hint to check `ssh-add -l` and the key
183
+ registration in your hopper profile.
184
+ - Every run's full output is saved to a log file under the user cache dir, so
185
+ a closed terminal does not lose a failure report. A failed run ends with
186
+ `Full output: <path>` pointing at that file; inspect it later with
187
+ `hopper logs`.
173
188
  - If the configured origin branch is missing but `origin/main` exists, hopper
174
189
  repairs the upstream automatically. Fresh clones with an invalid remote HEAD
175
190
  check out `main`; existing checkouts keep their local branch and changes.
176
191
 
192
+ ### `logs`
193
+
194
+ ```
195
+ hopper logs # print the saved output of the most recent pull run
196
+ hopper logs --path # print only the path to that file
197
+ ```
198
+
199
+ Each `hopper pull` writes its full terminal output to
200
+ `pull-<timestamp>.log` in the hopper logs directory under the user cache dir
201
+ (`~/.cache/hopper/logs/` on Linux, `~/Library/Caches/hopper/logs/` on macOS).
202
+ The file starts with a header (command line, timestamp, profile, course, exit
203
+ status) followed by the output exactly as it appeared in the terminal. Only
204
+ the 5 most recent logs are kept; older ones are deleted automatically. The
205
+ command does not touch the server, so it also works offline.
206
+
177
207
  ### `push` / `commit`
178
208
 
179
209
  ```
@@ -201,8 +231,8 @@ hopper info # course name/uid/id, profile, your user and role, exercises
201
231
  ## Version gate
202
232
 
203
233
  On every command that touches the server (everything except `auth`,
204
- `version`, and `help`), hopper asks the active profile's orchestration server
205
- for the minimum supported CLI version:
234
+ `version`, `logs`, and `help`), hopper asks the active profile's orchestration
235
+ server for the minimum supported CLI version:
206
236
 
207
237
  - **running version < minimum** → the CLI refuses to run and tells you to upgrade;
208
238
  - **running version >= minimum** → proceeds;
File without changes
File without changes
File without changes
File without changes