9
9
# If you wish to change the path to this file, set the environment variable
10
10
# BASHLY_SETTINGS_PATH.
11
11
12
+
13
+ # -------------------------------------------------------------------------------
14
+ # PATH OPTIONS
15
+ # -------------------------------------------------------------------------------
16
+
12
17
# The path containing the bashly source files
13
18
source_dir : src
14
19
@@ -27,6 +32,14 @@ lib_dir: lib
27
32
# directory, and each command will get its own subdirectory
28
33
commands_dir : ~
29
34
35
+ # The extension to use when reading/writing partial script snippets
36
+ partials_extension : sh
37
+
38
+
39
+ # -------------------------------------------------------------------------------
40
+ # FORMAT OPTIONS
41
+ # -------------------------------------------------------------------------------
42
+
30
43
# Configure the bash options that will be added to the initialize function:
31
44
# strict: true Bash strict mode (set -euo pipefail)
32
45
# strict: false Only exit on errors (set -e)
@@ -38,6 +51,11 @@ strict: false
38
51
# (every 2 leading spaces will be converted to a tab character)
39
52
tab_indent : false
40
53
54
+
55
+ # -------------------------------------------------------------------------------
56
+ # INTERFACE OPTIONS
57
+ # -------------------------------------------------------------------------------
58
+
41
59
# When true, the generated script will consider any argument in the form of
42
60
# `-abc` as if it is `-a -b -c`.
43
61
compact_short_flags : true
@@ -47,14 +65,6 @@ compact_short_flags: true
47
65
# respectively.
48
66
conjoined_flag_args : true
49
67
50
- # Set to 'production' or 'development':
51
- # env: production Generate a smaller script, without file markers
52
- # env: development Generate with file markers
53
- env : development
54
-
55
- # The extension to use when reading/writing partial script snippets
56
- partials_extension : sh
57
-
58
68
# Show command examples (if any) whenever the user does not provide the
59
69
# required arguments
60
70
show_examples_on_error : false
@@ -75,3 +85,28 @@ usage_colors:
75
85
arg : ~
76
86
flag : ~
77
87
environment_variable : ~
88
+
89
+
90
+ # -------------------------------------------------------------------------------
91
+ # FEATURE TOGGLES
92
+ # -------------------------------------------------------------------------------
93
+
94
+ # Set to 'production' or 'development'.
95
+ # Determines which features are enabled in the rendered script.
96
+ # Use the `enable_*` options below to adjust settings for each environment.
97
+ # It is recommended to leave this set to 'development' and run
98
+ # `bashly generate --production` when the slimmer production script is needed.
99
+ env : development
100
+
101
+ # Tweak the script output by enabling or disabling some script output.
102
+ # These options accept one of the following strings:
103
+ # - production render this feature only when env == production
104
+ # - development render this feature only when env == development
105
+ # - always render this feature in any environment
106
+ # - never do not render this feature
107
+ enable_header_comment : always
108
+ enable_bash3_bouncer : always
109
+ enable_view_markers : development
110
+ enable_inspect_args : development
111
+ enable_deps_array : always
112
+ enable_env_var_names_array : always
0 commit comments