Skip to content

Commit 27bd73b

Browse files
authored
Merge pull request #43 from DannyBen/update/colsole
Update colsole to >= 0.8.1
2 parents 79dd13c + 834eec7 commit 27bd73b

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

bin/completely

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ begin
1010
exit runner.run ARGV
1111
rescue => e
1212
puts e.backtrace.reverse if ENV['DEBUG']
13-
say! "!undred!#{e.class}!txtrst!\n#{e.message}"
13+
say! "rib` #{e.class} `\n#{e.message}"
1414
exit 1
1515
end

completely.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Gem::Specification.new do |s|
1515
s.license = 'MIT'
1616
s.required_ruby_version = '>= 2.7.0'
1717

18-
s.add_runtime_dependency 'colsole', '~> 0.6'
19-
s.add_runtime_dependency 'mister_bin', '~> 0.7.2'
18+
s.add_runtime_dependency 'colsole', '~> 0.8', '>= 0.8.1'
19+
s.add_runtime_dependency 'mister_bin', '~> 0.7'
2020

2121
s.metadata['rubygems_mfa_required'] = 'true'
2222
end

lib/completely/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CLI
1010
def self.runner
1111
runner = MisterBin::Runner.new version: Completely::VERSION,
1212
header: 'Completely - Bash Completions Generator',
13-
footer: 'Run !txtpur!completely COMMAND --help!txtrst! for more information'
13+
footer: 'Run m`completely COMMAND --help` for more information'
1414

1515
runner.route 'init', to: Commands::Init
1616
runner.route 'preview', to: Commands::Preview

lib/completely/commands/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def config_basename
5151
end
5252

5353
def syntax_warning
54-
say! "\n!txtred!WARNING:\nYour configuration is invalid."
55-
say! '!txtred!All patterns must start with the same word.'
54+
say! "\nr`WARNING:`\nr`Your configuration is invalid.`"
55+
say! 'r`All patterns must start with the same word.`'
5656
end
5757
end
5858
end

lib/completely/commands/generate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def run
2727
wrap = args['--wrap']
2828
output = wrap ? wrapper_function(wrap) : script
2929
File.write output_path, output
30-
say "Saved !txtpur!#{output_path}"
30+
say "Saved m`#{output_path}`"
3131
syntax_warning unless completions.valid?
3232
end
3333

lib/completely/commands/init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def run
1515
raise "File already exists: #{config_path}" if File.exist? config_path
1616

1717
File.write config_path, sample
18-
say "Saved !txtpur!#{config_path}"
18+
say "Saved m`#{config_path}`"
1919
end
2020

2121
private

lib/completely/commands/test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ def run
3838

3939
def show_compline(compline, filename: nil)
4040
filename ||= 'completely-tester.sh'
41-
say "!txtblu!$ !txtgrn!#{compline}!txtrst!<tab>"
41+
say "b`$` g`#{compline}`<tab>"
4242
puts tester.test(compline).join "\n"
4343
puts
4444

4545
return unless keep
4646

4747
File.write filename, tester_script(compline)
48-
say "Saved !txtpur!#{filename}"
48+
say "Saved m`#{filename}`"
4949
end
5050

5151
def complines

spec/approvals/cli/error

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Errno::ENOENT
1+
Errno::ENOENT
22
No such file or directory @ rb_sysopen - notfound.yaml

0 commit comments

Comments
 (0)