module ViteRuby::CLI::FileUtils
def append(path, contents)
- Api: - private
Other tags:
- Since: - 1.2.11
def append(path, contents) content = read_lines(path) return if content.join.include?(contents) content << "\n" unless content.last&.end_with?("\n") content << "#{ contents }\n" write(path, content) end