Skip to content

Commit

Permalink
- Fix view markers for user files
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Dec 20, 2024
1 parent 786d8db commit cc3896e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bashly/concerns/renderable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def load_user_file(file, placeholder: true)
''
end

Settings.production? ? content : "#{view_marker path}\n#{content}"
Settings.enabled?(:view_markers) ? "#{view_marker path}\n#{content}" : content
end

# Returns a path to a file in the user's source_dir. The file argument
Expand Down
2 changes: 1 addition & 1 deletion lib/bashly/views/command/parse_requirements_while.gtx
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ end
>
> esac
> done

>
3 changes: 2 additions & 1 deletion lib/bashly/views/command/required_args_filter.gtx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if required_args.any?
= render(:examples_on_error).indent 2
> exit 1
> fi
>
end

>
end
end

0 comments on commit cc3896e

Please sign in to comment.