Skip to content

Commit 82ca6f6

Browse files
author
Kevin Paulisse
committed
Add --create-symlinks
1 parent e37aa01 commit 82ca6f6

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# frozen_string_literal: true
2+
3+
# Specify which directories from the base should be symlinked into the temporary compilation
4+
# environment. This is useful only in conjunction with `--preserve-environments`.
5+
# @param parser [OptionParser object] The OptionParser argument
6+
# @param options [Hash] Options hash being constructed; this is modified in this method.
7+
OctocatalogDiff::CatalogDiff::Cli::Options::Option.newoption(:create_symlinks) do
8+
has_weight 503
9+
10+
def parse(parser, options)
11+
OctocatalogDiff::CatalogDiff::Cli::Options.option_globally_or_per_branch(
12+
parser: parser,
13+
options: options,
14+
cli_name: 'create-symlinks',
15+
option_name: 'create_symlinks',
16+
desc: 'Symlinks to create',
17+
datatype: []
18+
)
19+
end
20+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
require_relative '../options_helper'
4+
5+
describe OctocatalogDiff::CatalogDiff::Cli::Options do
6+
describe '#opt_create_symlinks' do
7+
include_examples 'global array option', 'create-symlinks', :create_symlinks
8+
end
9+
end

0 commit comments

Comments
 (0)