Skip to content

Commit

Permalink
Added a file template containing the scribe copyright header
Browse files Browse the repository at this point in the history
The template would be shown when scrolling to the bottom in the file creation menu, in a new category called "ScribeTemplates"
  • Loading branch information
Jag-Marcel authored and SaurabhJamadagni committed Apr 18, 2024
1 parent 1ae7fa5 commit ff70ecd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ScribeTemplates/ScribeHeader.xctemplate/TemplateInfo.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Identifier</key>
<string>com.example.templates.mytemplate</string>
<key>Kind</key>
<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
<key>Ancestors</key>
<array>
<string>com.apple.dt.unit-test-class</string>
</array>
</dict>
</plist>

18 changes: 18 additions & 0 deletions ScribeTemplates/ScribeHeader.xctemplate/___FILEBASENAME___.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* [Describe what you want to do with your file here]
*
* Copyright (C) 2023 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

0 comments on commit ff70ecd

Please sign in to comment.