ruby-sh 2.1.4 → 3.0.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.
@@ -1,15 +0,0 @@
1
- module Rubsh
2
- class Shell
3
- class Env
4
- attr_reader :path
5
-
6
- def initialize
7
- @path = ::ENV["PATH"].split(::File::PATH_SEPARATOR)
8
- end
9
-
10
- def path=(path)
11
- @path = [*path]
12
- end
13
- end
14
- end
15
- end
data/lib/rubsh/shell.rb DELETED
@@ -1,24 +0,0 @@
1
- module Rubsh
2
- class Shell
3
- # @!attribute [r] env
4
- # @return [Env]
5
- attr_reader :env
6
-
7
- def initialize
8
- @env = Env.new
9
- end
10
-
11
- # @return [Command]
12
- def command(prog)
13
- Command.new(self, prog)
14
- end
15
- alias_method :cmd, :command
16
-
17
- # @return [RunningPipeline]
18
- def pipeline(**kwarg)
19
- r = RunningPipeline.new(self).tap { |x| yield x }
20
- r.__run(**kwarg)
21
- r
22
- end
23
- end
24
- end
data/sig/rubsh.rbs DELETED
@@ -1,4 +0,0 @@
1
- module Rubsh
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end