smdev 1.2.2 → 1.2.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smdev.rb +40 -15
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3944688b5f28438bdb286304bbdc06115afbe3d7e1548aaa37e933fbaa0a2ddf
4
- data.tar.gz: a1be710fc98a0add8e63dcca21a3a5d59a429e5a50fea27e13365060cbb9ef2c
3
+ metadata.gz: e21d8eb42f80e6005ce00244fe18ce79f8a5fad1b75c83d5d578d1927b9ff867
4
+ data.tar.gz: 8772f52b12dacf7f1577f9881107f9bef50f6e9fd91b7aa7a33f6b007414451b
5
5
  SHA512:
6
- metadata.gz: d45c90193af9f78347a13f05d44cb86d91f1b50bbf06c81882680a5df24a31ff62753774f0d16107918120dda7929f2a40fd514bee3e0b9daa4bb10703439b1c
7
- data.tar.gz: f0cd7a754c05b6f96783e73e3addb3e43de06fa335abf36cf8cc9b7f98a695d7b6310ac8e72157713d8b89944eb60bb428ffa6e377c4d683eecf62f3f71dc6e1
6
+ metadata.gz: 502d04e0a73a55d646991c9861babcbe07e3ec46c43af8bef5139ca154aec6004c4e3a995123f0ec828e6834a2920a23cb588b1e588fa909723ed5deeec014ad
7
+ data.tar.gz: d7e5d1806307af35536a1d4aa90a56fc12b562331237632cc611bb2a05e15e802a2f7fe6f651b266b65581378ae201e6f9b497d1771d4bac8a8a9c932cc3c606
data/lib/smdev.rb CHANGED
@@ -29,6 +29,8 @@ module Smdev
29
29
  execute_console(options)
30
30
  when 'ssh'
31
31
  execute_ssh(options)
32
+ when 'pr_critic'
33
+ handle_pr_critic(options)
32
34
  when 'update'
33
35
  handle_update_command(subcommand)
34
36
  when 'help'
@@ -77,21 +79,43 @@ module Smdev
77
79
 
78
80
  def display_help
79
81
  puts "Usage: smdev COMMAND [options]"
80
- puts "\nCommands:"
81
- puts " local_app_setup - Set up local development environment"
82
- puts " system_install - Install system dependencies"
83
- puts " clone_repos - Clone repositories"
84
- puts " update_repos - Update repositories"
85
- puts " console - Open Rails console"
86
- puts " ssh - SSH into ECS container"
87
- puts " update cursor - Install or update cursor rules"
88
- puts " help - Show this help message"
89
- puts "\nOptions:"
90
- puts " -h, --help - Show this help message"
91
- puts " -s, --https - Use HTTPS instead of SSH for git operations"
92
- puts " -t, --team - Specify team name for repository operations"
93
- puts " --cluster - Specify ECS cluster for console/ssh commands"
94
- puts " --service - Specify ECS service for console/ssh commands"
82
+ puts ""
83
+ puts "DEVELOPMENT ENVIRONMENT COMMANDS:"
84
+ puts " local_app_setup - Set up local development environment (bundle install, copy .env, create/migrate DB)"
85
+ puts " system_install - Install system dependencies (Homebrew, PostgreSQL, AWS CLI, RBenv, Ruby, Rails)"
86
+ puts ""
87
+ puts "REPOSITORY MANAGEMENT COMMANDS:"
88
+ puts " clone_repos - Clone repositories from StrongMind organization"
89
+ puts " update_repos - Update existing local repositories (git pull)"
90
+ puts ""
91
+ puts "AWS/ECS COMMANDS:"
92
+ puts " console - Open Rails console in ECS container"
93
+ puts " ssh - SSH into ECS container"
94
+ puts ""
95
+ puts "DEVELOPMENT TOOLS:"
96
+ puts " pr_critic - Analyze pull requests and copy details to clipboard for review"
97
+ puts ""
98
+ puts "UPDATE COMMANDS:"
99
+ puts " update cursor - Install or update cursor rules"
100
+ puts ""
101
+ puts "HELP:"
102
+ puts " help - Show this help message"
103
+ puts ""
104
+ puts "OPTIONS:"
105
+ puts " -h, --help - Show this help message"
106
+ puts " -s, --https - Use HTTPS instead of SSH for git operations"
107
+ puts " -t, --team TEAM - Specify team name for repository operations"
108
+ puts " --cluster CLUSTER - Specify ECS cluster for console/ssh commands"
109
+ puts " --service SERVICE - Specify ECS service for console/ssh commands (default: prod-worker)"
110
+ puts ""
111
+ puts "EXAMPLES:"
112
+ puts " smdev local_app_setup # Set up local development environment"
113
+ puts " smdev clone_repos --team \"Backend Team\" # Clone repos for specific team"
114
+ puts " smdev update_repos --https # Update repos using HTTPS"
115
+ puts " smdev console --cluster my-cluster # Open Rails console in specific cluster"
116
+ puts " smdev ssh --service worker --cluster prod # SSH into worker service in prod cluster"
117
+ puts " smdev pr_critic # Analyze pull requests"
118
+ puts " smdev update cursor # Update cursor rules"
95
119
  end
96
120
 
97
121
  def handle_pr_critic(options)
@@ -107,6 +131,7 @@ module Smdev
107
131
  when "update_repos" then update_repos(options)
108
132
  when "console" then execute_console(options)
109
133
  when "ssh" then execute_ssh(options)
134
+ when "pr_critic" then handle_pr_critic(options)
110
135
  when "update" then handle_update(subcommand)
111
136
  else
112
137
  puts "Invalid command: #{command}. Use --help for a list of commands."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smdev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Neighbors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-08 00:00:00.000000000 Z
11
+ date: 2025-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize