makit 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/lib/makit/apache.rb +32 -32
  3. data/lib/makit/cli/clean.rb +14 -14
  4. data/lib/makit/cli/clone.rb +59 -59
  5. data/lib/makit/cli/init.rb +38 -38
  6. data/lib/makit/cli/main.rb +33 -33
  7. data/lib/makit/cli/make.rb +54 -54
  8. data/lib/makit/cli/new.rb +37 -37
  9. data/lib/makit/cli/nuget_cache.rb +38 -38
  10. data/lib/makit/cli/pull.rb +31 -31
  11. data/lib/makit/cli/setup.rb +71 -71
  12. data/lib/makit/cli/work.rb +21 -21
  13. data/lib/makit/command_runner.rb +318 -237
  14. data/lib/makit/commands.rb +21 -21
  15. data/lib/makit/content/default_gitignore.rb +5 -5
  16. data/lib/makit/content/default_rakefile.rb +11 -11
  17. data/lib/makit/content/gem_rakefile.rb +14 -14
  18. data/lib/makit/data.rb +50 -50
  19. data/lib/makit/directories.rb +140 -140
  20. data/lib/makit/directory.rb +153 -120
  21. data/lib/makit/dotnet.rb +83 -75
  22. data/lib/makit/environment.rb +123 -123
  23. data/lib/makit/files.rb +47 -47
  24. data/lib/makit/git.rb +66 -66
  25. data/lib/makit/gitlab_runner.rb +60 -60
  26. data/lib/makit/humanize.rb +89 -89
  27. data/lib/makit/logging.rb +96 -96
  28. data/lib/makit/markdown.rb +75 -75
  29. data/lib/makit/mp/basic_object_mp.rb +16 -16
  30. data/lib/makit/mp/command_request.mp.rb +13 -0
  31. data/lib/makit/mp/project_mp.rb +156 -149
  32. data/lib/makit/mp/string_mp.rb +107 -101
  33. data/lib/makit/nuget.rb +57 -57
  34. data/lib/makit/protoc.rb +61 -61
  35. data/lib/makit/serializer.rb +115 -70
  36. data/lib/makit/storage.rb +131 -131
  37. data/lib/makit/symbols.rb +149 -149
  38. data/lib/makit/tasks.rb +67 -67
  39. data/lib/makit/tree.rb +37 -37
  40. data/lib/makit/v1/makit.v1_pb.rb +5 -5
  41. data/lib/makit/v1/makit.v1_services_pb.rb +25 -25
  42. data/lib/makit/version.rb +12 -12
  43. data/lib/makit/wix.rb +95 -95
  44. data/lib/makit/zip.rb +17 -17
  45. data/lib/makit.rb +243 -243
  46. metadata +4 -39
  47. data/.makit.project.json +0 -4
  48. data/.makit.project.yml +0 -2
  49. data/.rubocop.yml +0 -22
  50. data/.ruby-version +0 -1
  51. data/CHANGELOG.md +0 -8
  52. data/CODE_OF_CONDUCT.md +0 -84
  53. data/LICENSE +0 -21
  54. data/README.md +0 -119
  55. data/Rakefile +0 -200
  56. data/docs/Commands.md +0 -50
  57. data/docs_/Commands.md +0 -166
  58. data/docs_/Minitest.Timeouts.md +0 -332
  59. data/examples/protoc/Rakefile +0 -31
  60. data/examples/rake_default/Rakefile +0 -6
  61. data/examples/rubygem-foo/.gitkeep +0 -0
  62. data/examples/rubygem-foo/Rakefile +0 -3
  63. data/examples/run_mp/Rakefile +0 -8
  64. data/exe/makit +0 -5
  65. data/lib/makit/content/default_gitignore.txt +0 -222
  66. data/lib/makit/content/ruby_gitlab-ci.yml +0 -15
  67. data/lib/makit/v1/makit.v1.proto +0 -103
  68. data/makit.generated.sln +0 -30
  69. data/makit.sln +0 -69
  70. data/pages/.gitignore +0 -5
  71. data/pages/404.html +0 -25
  72. data/pages/Gemfile +0 -33
  73. data/pages/Gemfile.lock +0 -88
  74. data/pages/_config.yml +0 -55
  75. data/pages/_layouts/default.html +0 -1
  76. data/pages/_posts/2024-10-05-welcome-to-jekyll.markdown +0 -29
  77. data/pages/about.markdown +0 -18
  78. data/pages/index.markdown +0 -6
  79. data/sig/makit.rbs +0 -4
  80. data/src/ClassLib/Class1.cs +0 -6
  81. data/src/ClassLib/ClassLib.csproj +0 -13
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at TODO: Write your email address. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Louis Parslow
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
data/README.md DELETED
@@ -1,119 +0,0 @@
1
- # [Makit](https://gems-rb.gitlab.io/makit/)
2
-
3
- Makit allows CI/CI tasks to be easily and clearly managed by a single Rakefile
4
-
5
- Primary objective: CLEAN,CONCISE,READABLE Rakefile
6
-
7
-
8
- CI/CD DevOps
9
- move fast, keep it simple, shift left, flatten, test, deliver
10
-
11
- <details>
12
- <summary>✔ git --version</summary>
13
-
14
- ```shell
15
- git version 2.39.3 (Apple Git-146)
16
- ```
17
-
18
-
19
-
20
- </details>
21
-
22
-
23
- <span style="color:green">✔</span> <span style="color:yellow">git</span> --version
24
-
25
-
26
-
27
- - [ ] .proto
28
- - [ ] artifacts: nuget, docker image, console application, desktop Application
29
- - [ ] docker container management
30
- - [ ] program installation management
31
- - [ ] CI/CD build management
32
-
33
- - [ ] rapid dev in ruby, as features settle, let a rust cli incorporate features
34
-
35
-
36
- ## Local NuGet Server
37
-
38
- [LiGet](https://github.com/ai-traders/liget)
39
-
40
- # directory code/data/liget/data
41
-
42
- require "raykit"
43
-
44
- task :setup do
45
- run "docker pull loicsharma/baget"
46
- end
47
- task :start_nuget_server do
48
- # https://loic-sharma.github.io/BaGet/installation/docker/
49
- FileUtils.mkdir_p "baget" unless Dir.exist? "baget"
50
- run "docker run --rm --name nuget-server -p 5555:80 --env-file baget.env -v \"C:/Users/lparslow/code/localhost_services/baget/baget-data:/var/baget\" loicsharma/baget:latest"
51
-
52
- # dotnet nuget push -s http://localhost:5555/v3/index.json -k NUGET-SERVER-API-KEY package.1.0.0.nupkg
53
- # dotnet nuget push -s http://localhost:5555/v3/index.json -k NUGET-SERVER-API-KEY symbol.package.1.0.0.snupkg
54
- end
55
-
56
- task :update_baget_packages => [:start_nuget_server] do
57
- start_task :update_baget_packages
58
- nuget_source_dir = "P:/code/nuget"
59
- baget_push_url = ENV["BAGET_PUSH_URL"]
60
- baget_api_key = ENV["BAGET_API_KEY"]
61
-
62
- # Check if local NuGet directory exists
63
- unless Dir.exist?(nuget_source_dir)
64
- puts "NuGet source directory does not exist."
65
- exit 1
66
- end
67
-
68
- if baget_push_url && baget_api_key && !baget_api_key.empty?
69
- packages = latest_packages(nuget_source_dir)
70
- puts "Found #{packages.length} packages to push to BaGet."
71
- push_packages(nuget_source_dir, packages, baget_push_url, baget_api_key)
72
- else
73
- puts "Missing BaGet API key or push URL."
74
- end
75
- end
76
-
77
- # Method to identify the latest version of each package
78
- def latest_packages(nuget_source_dir)
79
- packages = {}
80
-
81
- puts "scanning #{nuget_source_dir} for packages..."
82
- Dir.glob("#{nuget_source_dir}/**/*.nupkg").each do |file|
83
- filename = File.basename(file, ".nupkg")
84
- relative_filename = file.sub("#{nuget_source_dir}/", "")
85
- # the name if the first segment of the relative_filename
86
- name = relative_filename.split("/").first
87
- parts = filename.split(".")
88
- version = parts.pop
89
- id = parts.join(".")
90
-
91
- if packages[id].nil? || Gem::Version.new(version) > Gem::Version.new(packages[id])
92
- #packages[id] = version
93
- #puts "Found #{id} version #{version}."
94
- #puts "file #{file}"
95
- #puts "rel_file #{relative_filename}"
96
- #puts "name #{name}"
97
- #puts "version #{version}"
98
- packages[name] = filename
99
- end
100
- end
101
-
102
- packages
103
- end
104
-
105
- # Push the latest packages to BaGet
106
- def push_packages(nuget_source_dir, packages, baget_push_url, baget_api_key)
107
- packages.each do |name, filename|
108
- package_filename = filename #"#{nuget_source_dir}/#{id}.#{version}.nupkg"
109
- push_command = "dotnet nuget push -s #{baget_push_url} -k #{baget_api_key} --skip-duplicate #{package_filename}"
110
- puts "Pushing #{filename}..."
111
- system(push_command)
112
-
113
- if $?.success?
114
- puts "Package #{filename} pushed successfully."
115
- else
116
- puts "Failed to push package #{filename}."
117
- end
118
- end
119
- end
data/Rakefile DELETED
@@ -1,200 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/makit"
4
-
5
- desc "setup the environment"
6
- task :setup do
7
- puts ":setup".colorize(:blue)
8
- "bundle install".run
9
-
10
- # setup jekyll static web site
11
- "jekyll new pages --skip-bundle".run unless Dir.exist?("pages")
12
- FileUtils.mkdir_p("pages/_layouts") unless Dir.exist?("pages/_layouts")
13
- Dir.chdir("pages/_layouts") do
14
- "curl -O https://raw.githubusercontent.com/jekyll/minima/master/_layouts/default.html".run
15
- end
16
- raise "pages/_layouts/default.html not found" unless File.exist?("pages/_layouts/default.html")
17
-
18
- Makit::Protoc::setup
19
- end
20
-
21
- desc "generate code from proto file"
22
- task :generate do
23
- puts ":generate".colorize(:blue)
24
-
25
- "protoc --ruby_out=. lib/makit/v1/makit.v1.proto".run
26
- #puts " grpc_tools_ruby_protoc -I . --ruby_out=. --grpc_out=. lib/makit/v1/makit.v1.proto"
27
- #"grpc_tools_ruby_protoc -I . --ruby_out=. --grpc_out=. lib/makit/v1/makit.v1.proto".run
28
-
29
- puts " replacing require statement in makit.v1_services.rb"
30
- # replace the require 'lib/makit/makit_pb' with require_relative 'makit_pb'
31
- # require 'lib/makit/v1/makit.v1_pb'
32
- File.write("lib/makit/v1/makit.v1_services_pb.rb",
33
- File.read("lib/makit/v1/makit.v1_services_pb.rb").gsub("require 'lib/makit/v1/makit.v1_pb'",
34
- "require_relative 'makit.v1_pb'"))
35
- end
36
-
37
- desc "build the gem"
38
- task :build => [:generate] do
39
- puts ":build".colorize(:blue)
40
- "gem build makit.gemspec".run
41
-
42
- Dir.chdir("pages") do
43
- #"bundle exec jekyll build -d ../artifacts/pages".run
44
- #"jekyll build -d ../artifacts/website".run
45
- end
46
- end
47
-
48
- desc "test the gem"
49
- task :test do
50
- puts ":test".colorize(:blue)
51
- puts " rakefile is " + "#{Rake.application.rakefile}".colorize(:green)
52
-
53
- `ruby -r minitest/autorun test/test_makit.rb -- --fail-fast > artifacts/test_makit.log 2>&1`
54
- "ruby -r minitest/autorun test/test_makit.rb -- --fail-fast".run
55
- #"bundle exec rake".run
56
-
57
- raise "artifacts/test_makit.log not found" unless File.exist? "artifacts/test_makit.log"
58
- end
59
-
60
- desc "test the examples"
61
- task :test_examples do
62
- start_time = Time.now
63
- puts "=" * 80
64
- puts ":test_examples".colorize(:blue) + " started at #{start_time}"
65
- puts "=" * 80
66
- # loop over each directory in the examples directory and print out its name
67
- Dir.glob("examples/*").each do |dir|
68
- puts "#{dir}".colorize(:bold)
69
- Dir.chdir(dir) do
70
- # run the rake command in each directory
71
- "rake".run
72
- # delete the .gitignore file in each directory
73
- File.delete(".gitignore") if File.exist? ".gitignore"
74
- end
75
- end
76
- puts "=" * 80
77
- puts ":test_examples".colorize(:blue) + " completed in #{Time.now - start_time} seconds"
78
- puts "=" * 80
79
- end
80
-
81
- desc "update the project"
82
- task :update do # : "rubocop:autocorrect_all" do
83
- "rufo .".run({ exit_on_error: false })
84
- "bundle update".run
85
- end
86
-
87
- desc "install the gem"
88
- task :install => [:build] do
89
- puts ":install".colorize(:blue)
90
- "gem uninstall makit -a -x".run
91
- "gem install makit-#{Makit::VERSION}.gem".run
92
- # publish to [HOME]/code/artifacts/rubygems
93
- if (Dir.exist?(File.join(Makit::Directories::HOME, "code", "artifacts", "rubygems")))
94
- puts " copying gem to [HOME]/code/artifacts/rubygems".colorize(:green)
95
- FileUtils.cp("makit-#{Makit::VERSION}.gem", File.join(Makit::Directories::HOME, "code", "artifacts", "rubygems"))
96
- end
97
- # publish to [ONEDRIVE]/code/rubygems
98
- if (Dir.exist?(File.join(Makit::Directories::ONEDRIVE, "code", "artifacts", "rubygems")))
99
- puts " copying gem to [ONEDRIVE]/code/artifacts/rubygems".colorize(:green)
100
- FileUtils.cp("makit-#{Makit::VERSION}.gem", File.join(Makit::Directories::ONEDRIVE, "code", "artifacts", "rubygems"))
101
- end
102
- end
103
-
104
- task :publish => [:build, :test, :integrate] do
105
- puts ":publish".colorize(:blue)
106
- gem = "makit-#{Makit::VERSION}.gem"
107
- puts "gem file #{gem} does not exist" unless File.exist?(gem)
108
-
109
- gem_list_text = `gem list --remote makit` # Raykit::Command::new("gem list --remote makit").run.output
110
- if gem_list_text.include?("makit")
111
- "gem list --remote makit".run
112
- latest_published_version = ""
113
- makit_list = `gem list --remote makit`.gsub(" ruby", "").strip
114
- if (makit_list.length > 0)
115
- # check if scan is empty
116
- if (makit_list.scan(/makit \(([\d.]+)\)/).empty?)
117
- latest_published_version = ""
118
- else
119
- latest_published_version = makit_list.scan(/makit \(([\d.]+)\)/).last.first
120
- end
121
- end
122
- all_versions = `gem list --remote makit --all`
123
- puts " last published version #{latest_published_version}"
124
- if Makit::VERSION == latest_published_version || all_versions.include?("#{Makit::VERSION}")
125
- puts " gem #{gem} already published"
126
- else
127
- "gem push #{gem}".run
128
- end
129
- else
130
- puts " unable to list Makit::VERSION from --remote, internet may not be available"
131
- end
132
- end
133
-
134
- task :info do
135
- puts ":info".colorize(:blue)
136
-
137
- # collect all tasks that have been defined in the Rakefile and display them
138
- #puts " tasks defined in the Rakefile"
139
- #Rake.application.tasks.each do |task|
140
- # puts " #{task.name}"
141
- #end
142
-
143
- largest_ruby_file = "?"
144
- largest_ruby_file_size = 0
145
- largest_ruby_file_loc = 0
146
- Dir.glob("**/*.rb").each do |file|
147
- file_size = File.size(file)
148
- if (file_size > largest_ruby_file_size)
149
- largest_ruby_file = file
150
- largest_ruby_file_size = file_size
151
- end
152
- end
153
-
154
- largest_ruby_file_loc = Makit::Directory::get_line_count(largest_ruby_file)
155
-
156
- puts " largest ruby file " + largest_ruby_file.colorize(:green) + " is #{largest_ruby_file_size} bytes" + " #{largest_ruby_file_loc} loc"
157
- end
158
-
159
- desc "execute the default tasks for the project"
160
- task default: %i[setup generate build test integrate sync install info] do
161
- SHARED_ARTIFACTS = File.join(Makit::Directories::ONEDRIVE, "artifacts")
162
- if (Dir.exist?(SHARED_ARTIFACTS))
163
- #puts " copying gem to #{SHARED_ARTIFACTS}".colorize(:green)
164
- #FileUtils.cp("makit-#{Makit::VERSION}.gem", SHARED_ARTIFACTS)
165
- end
166
- Makit::LOGGER.info("completed in #{Time.now - Makit::STARTTIME} seconds")
167
- #system("bundle outdated")
168
- #puts `bundle outdated`
169
-
170
- end
171
-
172
- #
173
- #
174
- #
175
- #
176
- #
177
- #
178
- #
179
- #
180
- #
181
- #
182
- #
183
- # Register the at_exit hook for cleanup
184
- at_exit do
185
- puts "Performing cleanup..."
186
- # Add your cleanup code here
187
- # For example, close files, remove temporary files, etc.
188
- #json_filename = File.join(Makit::Directories::PROJECT_ROOT, ".makit.project.json")
189
- #puts "Saving project state to #{json_filename}"
190
- #Makit::PROJECT.save_as(json_filename)
191
-
192
- # display the 5 slowest commands
193
- puts " slowest commands"
194
- Makit::RUNNER.commands.sort_by { |command| (command.duration.seconds + (command.duration.nanos / 1_000_000_000.0)) }.reverse.first(5).each do |command|
195
- # Convert to float representation
196
- duration_in_float = command.duration.seconds + (command.duration.nanos / 1_000_000_000.0)
197
- #puts " #{command.name} took #{duration_in_float} seconds"
198
- puts " " + Makit::CommandRunner.get_command_summary(command) + " (#{command.duration.seconds} seconds)".colorize(:cyan)
199
- end
200
- end
data/docs/Commands.md DELETED
@@ -1,50 +0,0 @@
1
- # Markdown Examples
2
-
3
- <details>
4
- <summary>✓ pwd </summary>
5
-
6
- <table><tr><th>output</th></tr><tr><td>
7
-
8
- ```shell
9
- /Users/louie/code/work/gitlab/gems-rb/makit
10
-
11
- ```
12
-
13
- </td></tr></table>
14
-
15
- | exit code | started at | duration | user | device | os | directory |
16
- | --- | --- | --- | --- | --- | --- | --- |
17
- | 0 | 2024-10-05 10:37:22 | 0h 0m 0.0s | | | | /Users/louie/code/work/gitlab/gems-rb/makit |
18
- </details>
19
- <details>
20
- <summary>✓ git --version</summary>
21
-
22
- <table><tr><th>output</th></tr><tr><td>
23
-
24
- ```shell
25
- git version 2.39.5 (Apple Git-154)
26
-
27
- ```
28
-
29
- </td></tr></table>
30
-
31
- | exit code | started at | duration | user | device | os | directory |
32
- | --- | --- | --- | --- | --- | --- | --- |
33
- | 0 | 2024-10-05 10:37:22 | 0h 0m 0.01s | | | | /Users/louie/code/work/gitlab/gems-rb/makit |
34
- </details>
35
- <details>
36
- <summary>✓ ruby --version</summary>
37
-
38
- <table><tr><th>output</th></tr><tr><td>
39
-
40
- ```shell
41
- ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin23]
42
-
43
- ```
44
-
45
- </td></tr></table>
46
-
47
- | exit code | started at | duration | user | device | os | directory |
48
- | --- | --- | --- | --- | --- | --- | --- |
49
- | 0 | 2024-10-05 10:37:22 | 0h 0m 0.01s | | | | /Users/louie/code/work/gitlab/gems-rb/makit |
50
- </details>
data/docs_/Commands.md DELETED
@@ -1,166 +0,0 @@
1
- # Markdown Examples
2
-
3
- <details>
4
- <summary>✓ git --version C:/Users/lparslow/code/work/gitlab/gems-rb/makit</summary>
5
-
6
- <table><tr><th>output</th></tr><tr><td>
7
-
8
- ```shell
9
- git version 2.36.1.windows.1
10
-
11
- ```
12
-
13
- </td></tr></table>
14
-
15
- | exit code | started at | duration | user | device | os | directory |
16
- | --- | --- | --- | --- | --- | --- | --- |
17
- | 0 | 2024-06-04 08:27:02 | 0h 0m 0.06s | lparslow | Lou-Parslow | Windows | C:/Users/lparslow/code/work/gitlab/gems-rb/makit |
18
- </details>
19
- <details>
20
- <summary>✓ git --help C:/Users/lparslow/code/work/gitlab/gems-rb/makit</summary>
21
-
22
- <table><tr><th>output</th></tr><tr><td>
23
-
24
- ```shell
25
- usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
26
- [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
27
- [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
28
- [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
29
- [--super-prefix=<path>] [--config-env=<name>=<envvar>]
30
- <command> [<args>]
31
-
32
- These are common Git commands used in various situations:
33
-
34
- start a working area (see also: git help tutorial)
35
- clone Clone a repository into a new directory
36
- init Create an empty Git repository or reinitialize an existing one
37
-
38
- work on the current change (see also: git help everyday)
39
- add Add file contents to the index
40
- mv Move or rename a file, a directory, or a symlink
41
- restore Restore working tree files
42
- rm Remove files from the working tree and from the index
43
-
44
- examine the history and state (see also: git help revisions)
45
- bisect Use binary search to find the commit that introduced a bug
46
- diff Show changes between commits, commit and working tree, etc
47
- grep Print lines matching a pattern
48
- log Show commit logs
49
- show Show various types of objects
50
- status Show the working tree status
51
-
52
- grow, mark and tweak your common history
53
- branch List, create, or delete branches
54
- commit Record changes to the repository
55
- merge Join two or more development histories together
56
- rebase Reapply commits on top of another base tip
57
- reset Reset current HEAD to the specified state
58
- switch Switch branches
59
- tag Create, list, delete or verify a tag object signed with GPG
60
-
61
- collaborate (see also: git help workflows)
62
- fetch Download objects and refs from another repository
63
- pull Fetch from and integrate with another repository or a local branch
64
- push Update remote refs along with associated objects
65
-
66
- 'git help -a' and 'git help -g' list available subcommands and some
67
- concept guides. See 'git help <command>' or 'git help <concept>'
68
- to read about a specific subcommand or concept.
69
- See 'git help git' for an overview of the system.
70
-
71
- ```
72
-
73
- </td></tr></table>
74
-
75
- | exit code | started at | duration | user | device | os | directory |
76
- | --- | --- | --- | --- | --- | --- | --- |
77
- | 0 | 2024-06-04 08:27:02 | 0h 0m 0.08s | lparslow | Lou-Parslow | Windows | C:/Users/lparslow/code/work/gitlab/gems-rb/makit |
78
- </details>
79
- <details>
80
- <summary>✓ ruby --version C:/Users/lparslow/code/work/gitlab/gems-rb/makit</summary>
81
-
82
- <table><tr><th>output</th></tr><tr><td>
83
-
84
- ```shell
85
- ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x64-mingw-ucrt]
86
-
87
- ```
88
-
89
- </td></tr></table>
90
-
91
- | exit code | started at | duration | user | device | os | directory |
92
- | --- | --- | --- | --- | --- | --- | --- |
93
- | 0 | 2024-06-04 08:27:02 | 0h 0m 0.05s | lparslow | Lou-Parslow | Windows | C:/Users/lparslow/code/work/gitlab/gems-rb/makit |
94
- </details>
95
- <details>
96
- <summary>✓ ruby --help C:/Users/lparslow/code/work/gitlab/gems-rb/makit</summary>
97
-
98
- <table><tr><th>output</th></tr><tr><td>
99
-
100
- ```shell
101
- Usage: ruby [switches] [--] [programfile] [arguments]
102
- -0[octal] specify record separator (\0, if no argument)
103
- -a autosplit mode with -n or -p (splits $_ into $F)
104
- -c check syntax only
105
- -Cdirectory cd to directory before executing your script
106
- -d, --debug set debugging flags (set $DEBUG to true)
107
- -e 'command' one line of script. Several -e's allowed. Omit [programfile]
108
- -Eex[:in], --encoding=ex[:in]
109
- specify the default external and internal character encodings
110
- -Fpattern split() pattern for autosplit (-a)
111
- -i[extension] edit ARGV files in place (make backup if extension supplied)
112
- -Idirectory specify $LOAD_PATH directory (may be used more than once)
113
- -l enable line ending processing
114
- -n assume 'while gets(); ... end' loop around your script
115
- -p assume loop like -n but print line also like sed
116
- -rlibrary require the library before executing your script
117
- -s enable some switch parsing for switches after script name
118
- -S look for the script using PATH environment variable
119
- -v print the version number, then turn on verbose mode
120
- -w turn warnings on for your script
121
- -W[level=2|:category]
122
- set warning level; 0=silence, 1=medium, 2=verbose
123
- -x[directory] strip off text before #!ruby line and perhaps cd to directory
124
- --jit enable JIT for the platform, same as --mjit (experimental)
125
- --copyright print the copyright
126
- --dump={insns|parsetree|...}[,...]
127
- dump debug information. see below for available dump list
128
- --enable={jit|rubyopt|...}[,...], --disable={jit|rubyopt|...}[,...]
129
- enable or disable features. see below for available features
130
- --external-encoding=encoding, --internal-encoding=encoding
131
- specify the default external or internal character encoding
132
- --backtrace-limit=num
133
- limit the maximum length of backtrace
134
- --verbose turn on verbose mode and disable script from stdin
135
- --version print the version number, then exit
136
- --help show this message, -h for short message
137
- Dump List:
138
- insns instruction sequences
139
- insns_without_opt
140
- instruction sequences compiled with no optimization
141
- yydebug(+error-tolerant)
142
- yydebug of yacc parser generator
143
- parsetree(+error-tolerant)
144
- AST
145
- parsetree_with_comment(+error-tolerant)
146
- AST with comments
147
- Features:
148
- gems rubygems (only for debugging, default: enabled)
149
- error_highlight error_highlight (default: enabled)
150
- did_you_mean did_you_mean (default: enabled)
151
- syntax_suggest syntax_suggest (default: enabled)
152
- rubyopt RUBYOPT environment variable (default: enabled)
153
- frozen-string-literal
154
- freeze all string literals (default: disabled)
155
- Warning categories:
156
- deprecated deprecated features
157
- experimental experimental features
158
-
159
- ```
160
-
161
- </td></tr></table>
162
-
163
- | exit code | started at | duration | user | device | os | directory |
164
- | --- | --- | --- | --- | --- | --- | --- |
165
- | 0 | 2024-06-04 08:27:02 | 0h 0m 0.05s | lparslow | Lou-Parslow | Windows | C:/Users/lparslow/code/work/gitlab/gems-rb/makit |
166
- </details>