shapeup-cli 0.8.0 → 0.8.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4b97dfcf5b4550677ef419ad28ae3900f770c5f3c3795e7b005d2a09582f472
4
- data.tar.gz: 8ad78fe52812199514232eadbf8d5e52506e916c391ac6c240ad7730edd6d8fe
3
+ metadata.gz: cc0a67b4cc8086fc7ba5a2984d6be2b2eab9041ce4efe344e3030840e4cb6c21
4
+ data.tar.gz: 2ae7641ddd1b78c4777200191c168e9d7b461785f552b598715864cf9555e4b9
5
5
  SHA512:
6
- metadata.gz: 0467cb5be9b5e7d830406d00495cb9929dfd15772aa7ae09e8abb30237ebceb4e8cc2ad3286e2ef191d5a4186ced7cf900b1d66016edb9f31719a4bead6b06da
7
- data.tar.gz: 9a8eea1d289458f647e4c9352a479e8f2bcc726d268a4577e3659c0b4f00132bf0d06a62f8d8f1a5251b01080c69611fe2baea7e0ebe54c53d203ed1432221f7
6
+ metadata.gz: 508c56acc3c2b28de638e76ac8ec7d5771daca19a5c083392cb876b4b2a8f6293c45205b158a55507ad7509f9be152b83c57a61cd2a90678967c9697e680c030
7
+ data.tar.gz: c39c3a4ad91d481aee6cc60ed58eb30b21396323ef0de3f619e9f38564e63b67b9860dd4d445301354fee55217e107aa9cdf86d817baa083677b8e6df9b19e08
@@ -121,7 +121,7 @@ module ShapeupCli
121
121
 
122
122
  def profile_candidates
123
123
  select_first [
124
- { source: "SHAPEUP_PROFILE env", value: ENV["SHAPEUP_PROFILE"] },
124
+ { source: "--profile flag or SHAPEUP_PROFILE env", value: ENV["SHAPEUP_PROFILE"] },
125
125
  { source: "profiles.json default", value: Config.saved_default_profile }
126
126
  ]
127
127
  end
@@ -130,6 +130,7 @@ module ShapeupCli
130
130
  select_first [
131
131
  { source: "--org flag", value: @org_id },
132
132
  { source: "SHAPEUP_ORG env", value: ENV["SHAPEUP_ORG"] },
133
+ { source: picked_profile_source, value: Config.chosen_profile_value("organisation_id") },
133
134
  { source: project_config_source, value: Config.project_config["organisation_id"] },
134
135
  { source: "~/.config/shapeup/config.json", value: Config.global_config["organisation_id"] },
135
136
  { source: "profile '#{Config.current_profile_name}'", value: Config.current_profile&.dig("organisation_id") }
@@ -139,6 +140,7 @@ module ShapeupCli
139
140
  def host_candidates
140
141
  select_first [
141
142
  { source: "SHAPEUP_HOST env", value: ENV["SHAPEUP_HOST"] },
143
+ { source: picked_profile_source, value: Config.chosen_profile_value("host") },
142
144
  { source: project_config_source, value: Config.project_config["host"] },
143
145
  { source: "~/.config/shapeup/config.json", value: Config.global_config["host"] },
144
146
  { source: "profile '#{Config.current_profile_name}'", value: Config.current_profile&.dig("host") },
@@ -153,6 +155,10 @@ module ShapeupCli
153
155
  ]
154
156
  end
155
157
 
158
+ def picked_profile_source
159
+ "profile picked with --profile (#{ENV["SHAPEUP_PROFILE"] || "none"})"
160
+ end
161
+
156
162
  def project_config_source
157
163
  Config.project_config_path || Config::PROJECT_CONFIG_NAME
158
164
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShapeupCli
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
@@ -64,6 +64,23 @@ themselves.
64
64
  }
65
65
  ```
66
66
 
67
+ Always fill in the test command before asking, so the agent can check its work unattended.
68
+ Work out how this project runs its tests from what is in the directory, and list each way
69
+ you find:
70
+
71
+ | You find | Add |
72
+ |----------|-----|
73
+ | `bin/rails` | `"Bash(bin/rails test *)"` |
74
+ | `Rakefile` | `"Bash(bundle exec rake *)"` |
75
+ | a `test/` folder of Ruby files and no Rakefile | `"Bash(ruby test/*)"` |
76
+ | `package.json` with a `test` script | `"Bash(npm test *)"` (or the yarn/pnpm equivalent the lockfile shows) |
77
+ | `Makefile` with a test or check target | `"Bash(make test *)"` / `"Bash(make check *)"` |
78
+ | `pyproject.toml`, `pytest.ini` or `tests/` with Python | `"Bash(pytest *)"` |
79
+ | `go.mod` | `"Bash(go test *)"` |
80
+ | `Cargo.toml` | `"Bash(cargo test *)"` |
81
+
82
+ If you can't tell, ask the user how they run the tests rather than leaving it out.
83
+
67
84
  Merge with what is there, never replace it, and make sure `.claude/settings.local.json` is in
68
85
  `.gitignore`. If they say no, carry on: they will approve each command instead. If prompts keep
69
86
  appearing after writing it, tell them a new session picks the rules up.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shapeup-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShapeUp