This tool can remove file headers from your Swift source files and add new headers based on a template.
swift package experimental-install
swift package experimental-uninstall SwiftHeaderTool
Early version, do not use in production.
SwiftHeaderTool strip --path sourcedir
SwiftHeaderTool add --path sourcedir --template-path template.txt
SwiftHeaderTool replace --path sourcedir --template-path template.txt
$figlet(HyperKit)
$filename
Made by paxos in $date
will turn into
//
// # # # #
// # # # # ##### ###### ##### # # # #####
// # # # # # # # # # # # # #
// ####### # # # ##### # # ### # #
// # # # ##### # ##### # # # #
// # # # # # # # # # # #
// # # # # ###### # # # # # #
//
// CommitsService.swift
// Made by paxos in Mar 14, 2024