Skip to content

Commit 0713f36

Browse files
committed
Merge branch 'temp'
2 parents 88eb3bf + d639f68 commit 0713f36

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/bashly/commands/add.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def completions_function
112112
end
113113

114114
def save_comp_yaml(filename = nil)
115-
filename ||= "#{Settings.target_dir}/completions.yaml"
115+
filename ||= "#{Settings.target_dir}/completions.yml"
116116
File.write filename, completions.to_yaml
117117
say "created !txtgrn!#{filename}"
118118
say ""

spec/approvals/cli/add/comp-yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
created spec/tmp/completions.yaml
1+
created spec/tmp/completions.yml
22

33
This file can be converted to a completions script using the completely gem.

spec/bashly/commands/add_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@
106106
end
107107

108108
context "with yaml subcommand" do
109-
it "creates completions.yaml" do
109+
it "creates completions.yml" do
110110
expect { subject.run %w[add comp yaml] }.to output_approval('cli/add/comp-yaml')
111-
expect(File.read "#{target_dir}/completions.yaml").to match_approval('cli/add/comp-yaml-file')
111+
expect(File.read "#{target_dir}/completions.yml").to match_approval('cli/add/comp-yaml-file')
112112
end
113113
end
114114

0 commit comments

Comments
 (0)