This repository was archived by the owner on Mar 19, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +47
-6
lines changed Expand file tree Collapse file tree 5 files changed +47
-6
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class AddLicense implements EditProject {
43
43
44
44
// TODO: Add more license types
45
45
@Parameter ( {
46
- displayName : "License type " ,
46
+ displayName : "License Type " ,
47
47
description : "license type (currently only supporting aslv2: Apache version 2)" ,
48
48
pattern : "^aslv2$" ,
49
49
validInput : "Possible values: aslv2" ,
Original file line number Diff line number Diff line change 186
186
same "printed page" as the copyright notice for easier
187
187
identification within third-party archives.
188
188
189
- Copyright 2016 Atomist
189
+ Copyright [yyyy] [name of copyright owner]
190
190
191
191
Licensed under the Apache License, Version 2.0 (the "License");
192
192
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
- [ Unreleased ] : https://github.com/atomist/rug-rugs/compare/0.29.0...HEAD
10
+ [ Unreleased ] : https://github.com/atomist/rug-rugs/compare/0.30.0...HEAD
11
+
12
+ ## [ 0.30.0] - 2017-05-12
13
+
14
+ [ 0.30.0 ] : https://github.com/atomist/rug-rugs/compare/0.29.0...0.30.0
15
+
16
+ Version release
11
17
12
18
### Changed
13
19
@@ -20,16 +26,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
20
26
21
27
- Command handler ` show latest versions ` that displays the latest versions
22
28
of ` com.atomist:rug ` and ` @atomist/rugs `
23
- - BumpVersion editor
24
- - UpdateRug editor
29
+ - BumpVersion editor [ # 49 ] [ 49 ]
30
+ - UpdateRug editor [ # 49 ] [ 49 ]
25
31
- isRugArchive and isSetupForTypeScript functions
26
32
- NotRugArchiveError class
33
+ - AddLicense editor
27
34
28
35
### Deprecated
29
36
30
37
- IsRugArchive and IsSetupForTypeScript functions
31
38
32
39
[ 51 ] : https://github.com/atomist/rug-rugs/issues/51
40
+ [ 49 ] : https://github.com/atomist/rug-rugs/issues/49
33
41
34
42
## [ 0.29.0] - 2017-04-26
35
43
Original file line number Diff line number Diff line change 186
186
same "printed page" as the copyright notice for easier
187
187
identification within third-party archives.
188
188
189
- Copyright 2016 Atomist
189
+ Copyright [yyyy] [name of copyright owner]
190
190
191
191
Licensed under the Apache License, Version 2.0 (the "License");
192
192
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -12,6 +12,39 @@ handlers. Most meta.
12
12
13
13
## Rugs
14
14
15
+ ### AddLicense
16
+
17
+ The AddLicense editor adds a LICENSE file to a project and license
18
+ header comments to TypeScript files in a project.
19
+
20
+ #### Prerequisites
21
+
22
+ A source code project.
23
+
24
+ #### Parameters
25
+
26
+ This Rug takes following parameters.
27
+
28
+ Name | Required | Default | Description
29
+ -----|----------|---------|------------
30
+ ` include ` | No | "" | Comma-separated list of paths under which to search for files, search under all paths if empty
31
+ ` license ` | No | "aslv2" | License to add, currently only "aslv2" is supported
32
+
33
+ #### Running
34
+
35
+ Run this Rug as follows:
36
+
37
+ ```
38
+ $ cd project/directory
39
+ $ rug edit atomist:rug-rugs:AddLicense \
40
+ include=src,test \
41
+ license=aslv2
42
+ ```
43
+
44
+ This will add the ASLv2 license as ` LICENSE ` to the file and add a
45
+ license header comment to all TypeScript files under the ` src ` and
46
+ ` test ` directories in the project.
47
+
15
48
### AddLocalEditor
16
49
17
50
The AddLocalEditor editor adds an editor for modifying the local
You can’t perform that action at this time.
0 commit comments