dagger_ruby 0.4.0 → 0.6.0
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 +4 -4
- data/CHANGELOG.md +25 -0
- data/lib/dagger_ruby/config.rb +5 -3
- data/lib/dagger_ruby/version.rb +1 -1
- data/lib/dagger_ruby.rb +11 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d55d30e1a649d969398e1f7e4a049e5303cbf037b0b57272e4f7c093c0f86722
|
4
|
+
data.tar.gz: 0d242f193df07c677b1e70c105bfd856a881a740b727376942f4d33a593e0612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ab620c788a833a369fa4f587a1ed50d3feab24278c314192bf75afb4b1a42a69a7ad756b03644d699bb424a4dce16087e18af5d265d2befbf47ef92295c6a7
|
7
|
+
data.tar.gz: 2aa572694719d97f99523ef393075fd2468344d975a0e7774a74d1e89d56cd25529d1fddc520c1a9c18887caf3de7d347231c947c67ed2ecc8d788cff44c79bf
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.6.0] - 2025-09-17
|
9
|
+
|
10
|
+
Programmatic Control:
|
11
|
+
|
12
|
+
config = DaggerRuby::Config.new(
|
13
|
+
engine_log_level: "error", # Only errors
|
14
|
+
progress: "plain" # Clean progress format
|
15
|
+
)
|
16
|
+
DaggerRuby.connection(config) do |client|
|
17
|
+
# Your operations with clean output
|
18
|
+
end
|
19
|
+
|
20
|
+
📋 Progress Options:
|
21
|
+
|
22
|
+
- plain - Simple text progress (no fancy symbols like ▶ ●)
|
23
|
+
- dots - Just dots for progress
|
24
|
+
- tty - Full fancy output (default)
|
25
|
+
- auto - Auto-detect based on terminal
|
26
|
+
|
27
|
+
🎯 What This Eliminates:
|
28
|
+
|
29
|
+
- All the ▶ connect, ● container: symbols
|
30
|
+
- Timing information like 0.7s, 3.6s CACHED
|
31
|
+
- Complex tree-style progress display
|
32
|
+
|
8
33
|
## [0.4.0] - 2025-09-17
|
9
34
|
|
10
35
|
1. Environment Variable (Easiest)
|
data/lib/dagger_ruby/config.rb
CHANGED
@@ -2,13 +2,15 @@ require "logger"
|
|
2
2
|
|
3
3
|
module DaggerRuby
|
4
4
|
class Config
|
5
|
-
attr_reader :log_output, :workdir, :timeout, :
|
5
|
+
attr_reader :log_output, :workdir, :timeout, :quiet, :silent, :progress
|
6
6
|
|
7
|
-
def initialize(log_output: nil, workdir: nil, timeout: nil,
|
7
|
+
def initialize(log_output: nil, workdir: nil, timeout: nil, quiet: nil, silent: nil, progress: nil)
|
8
8
|
@log_output = log_output
|
9
9
|
@workdir = workdir
|
10
10
|
@timeout = timeout || 600
|
11
|
-
@
|
11
|
+
@quiet = quiet || ENV["DAGGER_QUIET"]&.to_i
|
12
|
+
@silent = silent || ENV["DAGGER_SILENT"] == "true"
|
13
|
+
@progress = progress || ENV.fetch("DAGGER_PROGRESS", nil)
|
12
14
|
end
|
13
15
|
end
|
14
16
|
end
|
data/lib/dagger_ruby/version.rb
CHANGED
data/lib/dagger_ruby.rb
CHANGED
@@ -31,11 +31,18 @@ module DaggerRuby
|
|
31
31
|
# Construct the command that dagger should run
|
32
32
|
ruby_cmd = ["ruby", script, *args].join(" ")
|
33
33
|
|
34
|
-
# Get
|
35
|
-
|
34
|
+
# Get verbosity options from config or environment
|
35
|
+
quiet = config&.quiet || ENV["DAGGER_QUIET"]&.to_i
|
36
|
+
silent = config&.silent || ENV["DAGGER_SILENT"] == "true"
|
37
|
+
progress = config&.progress || ENV.fetch("DAGGER_PROGRESS", nil)
|
36
38
|
|
37
|
-
#
|
38
|
-
|
39
|
+
# Build dagger command with options
|
40
|
+
cmd_parts = ["dagger"]
|
41
|
+
cmd_parts += ["-q"] * quiet if quiet&.positive?
|
42
|
+
cmd_parts += ["--silent"] if silent
|
43
|
+
cmd_parts += ["--progress", progress] if progress
|
44
|
+
cmd_parts += ["run", ruby_cmd]
|
45
|
+
cmd = cmd_parts.join(" ")
|
39
46
|
|
40
47
|
# Execute the command
|
41
48
|
exec(cmd)
|