bashly 1.0.4 → 1.0.5
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/lib/bashly/cli.rb +1 -0
- data/lib/bashly/commands/doc.rb +0 -1
- data/lib/bashly/commands/init.rb +1 -1
- data/lib/bashly/commands/shell.rb +40 -0
- data/lib/bashly/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c219a4bf3f32f47434d1a855a620ea62caaafe336a8647e8ef84529eb7023b8
|
4
|
+
data.tar.gz: d18b7f6bdfeb43fc4a27fb9e5f617d1c0c9c6f5783f5c7dc1df8f6eff575c8ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38cf3b1d1c49c447f0e2817b57cb03362e528cefe22dc0f4d9c1dcfcb7b52859c034bc012bfb7ec769b6c94801c102bfe74d9c336e0dbc8ee060027c10b1b242
|
7
|
+
data.tar.gz: e64ced05cc15cd4cb66cc2dc6696cb522db87843c9fc8826d69500cfb1aafb8aa3ad13ccf36bca806ce262cece7c30763229d82f297bbf471ee71ca5807eaaec
|
data/lib/bashly/cli.rb
CHANGED
data/lib/bashly/commands/doc.rb
CHANGED
@@ -2,7 +2,6 @@ module Bashly
|
|
2
2
|
module Commands
|
3
3
|
class Doc < Base
|
4
4
|
summary 'Show bashly reference documentation'
|
5
|
-
help 'This command displays bite-sized help for all the bashly configuration options in the terminal.'
|
6
5
|
|
7
6
|
usage 'bashly doc [SEARCH] [--index]'
|
8
7
|
usage 'bashly doc (-h|--help)'
|
data/lib/bashly/commands/init.rb
CHANGED
@@ -2,7 +2,7 @@ module Bashly
|
|
2
2
|
module Commands
|
3
3
|
class Init < Base
|
4
4
|
summary 'Initialize a new workspace'
|
5
|
-
help '
|
5
|
+
help 'Create the bashly source folder, and place a template configuration file in it'
|
6
6
|
|
7
7
|
usage 'bashly init [--minimal]'
|
8
8
|
usage 'bashly init (-h|--help)'
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Bashly
|
2
|
+
module Commands
|
3
|
+
class Shell < Base
|
4
|
+
summary 'Start an interactive bashly shell'
|
5
|
+
help 'Start an interactive shell where you can run bashly commands'
|
6
|
+
|
7
|
+
usage 'bashly shell'
|
8
|
+
usage 'bashly shell (-h|--help)'
|
9
|
+
|
10
|
+
def run
|
11
|
+
ENV['BASHLY_SHELL'] = '1'
|
12
|
+
terminal.start
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def terminal
|
18
|
+
@terminal ||= begin
|
19
|
+
terminal = MisterBin::Terminal.new runner, {
|
20
|
+
autocomplete: autocomplete,
|
21
|
+
show_usage: true,
|
22
|
+
prompt: "\n\e[33m\e[1mbashly\e[0m > ",
|
23
|
+
}
|
24
|
+
|
25
|
+
terminal.on('help') { runner.run %w[--help] }
|
26
|
+
terminal.on('version') { runner.run %w[--version] }
|
27
|
+
terminal
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def runner
|
32
|
+
@runner ||= Bashly::CLI.runner
|
33
|
+
end
|
34
|
+
|
35
|
+
def autocomplete
|
36
|
+
@autocomplete ||= %w[help version] + runner.commands.keys
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/bashly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bashly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/bashly/commands/generate.rb
|
132
132
|
- lib/bashly/commands/init.rb
|
133
133
|
- lib/bashly/commands/preview.rb
|
134
|
+
- lib/bashly/commands/shell.rb
|
134
135
|
- lib/bashly/commands/validate.rb
|
135
136
|
- lib/bashly/concerns/asset_helper.rb
|
136
137
|
- lib/bashly/concerns/completions.rb
|
@@ -262,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
263
|
- !ruby/object:Gem::Version
|
263
264
|
version: '0'
|
264
265
|
requirements: []
|
265
|
-
rubygems_version: 3.
|
266
|
+
rubygems_version: 3.4.13
|
266
267
|
signing_key:
|
267
268
|
specification_version: 4
|
268
269
|
summary: Bash Command Line Tool Generator
|