Skip to content

Commit e5640c6

Browse files
committed
update README
1 parent 70d98cd commit e5640c6

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@ Start generating...
9292
```
9393
It's easy, right?
9494

95+
### delete | d
96+
To delete a template, you could use this command:
97+
```
98+
$ scion delete
99+
```
100+
and type the template name you want to delete:
101+
```
102+
Template name: my-tpl-name
103+
```
104+
if the name exist, you will see:
105+
```
106+
Template deleted!
107+
The last template list is:
108+
109+
{ tpl:
110+
{ motto:
111+
{ url: 'https://github.com/jrainlau/motto.git',
112+
branch: 'gh-pages' },
113+
'my-tpl-name': undefined } }
114+
```
115+
once a template is `undefined`, it means you've deleted it successfully.
116+
95117
# Template
96118
The most important part of Scion is `template`. All templates' infomation were list in the `templates.json`.
97119
A template means a project sample, which has a simple or complex file structure.
@@ -110,4 +132,3 @@ MIT.
110132

111133

112134

113-

templates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tpl":{"motto":{"url":"https://github.com/jrainlau/motto.git","branch":"gh-pages"},"my-tpl-name":{"url":"https://gitxxx/somebody/my-tpl-name.git","branch":"master"}}}
1+
{"tpl":{"motto":{"url":"https://github.com/jrainlau/motto.git","branch":"gh-pages"}}}

0 commit comments

Comments
 (0)