Permalink
Browse files

Rename Interface to lower case

  • Loading branch information...
1 parent 622a483 commit 1c66328d6fab3bda23a3841ba8cbbdfc4599f7f7 @peterblazejewicz peterblazejewicz committed Jul 24, 2016
Showing with 20 additions and 20 deletions.
  1. +0 −8 Interface/USAGE
  2. +4 −4 README.md
  3. +1 −1 app/USAGE
  4. +8 −0 interface/USAGE
  5. +1 −1 {Interface → interface}/index.js
  6. +6 −6 test/subgenerators.js
View
@@ -1,8 +0,0 @@
-Description:
- Creates a new C# Interface file
-
-Example:
- yo aspnet:Interface filename
-
- This will create:
- filename.cs
View
@@ -108,7 +108,7 @@ The alphabetic list of available sub generators (_to create files after the proj
* [aspnet:gruntfile](#gruntfile)
* [aspnet:gulpfile](#gulpfile)
* [aspnet:htmlpage](#htmlpage)
-* [aspnet:Interface](#interface)
+* [aspnet:interface](#interface)
* [aspnet:JavaScript](#javascript)
* [aspnet:JSON](#json)
* [aspnet:JSONSchema](#jsonschema)
@@ -334,14 +334,14 @@ Produces `filename.html`
[Return to top](#top)
-### Interface
+### interface
-Creates a new ASP.NET Core Interface
+Creates a new ASP.NET Core interface
Example:
```
-yo aspnet:Interface IContact
+yo aspnet:interface IContact
```
Produces `/IContact.cs`
View
@@ -18,7 +18,7 @@ Subgenerators:
yo aspnet:gruntfile [options]
yo aspnet:gulpfile [options] <name>
yo aspnet:htmlpage [options] <name>
- yo aspnet:Interface [options] <name>
+ yo aspnet:interface [options] <name>
yo aspnet:JavaScript [options] <name>
yo aspnet:JSON [options] <name>
yo aspnet:JSONSchema [options] <name>
View
@@ -0,0 +1,8 @@
+Description:
+ Creates a new C# interface file
+
+Example:
+ yo aspnet:interface filename
+
+ This will create:
+ filename.cs
@@ -11,7 +11,7 @@ util.inherits(NamedGenerator, ScriptBase);
NamedGenerator.prototype.createNamedItem = function() {
var extension = '.cs';
this.generateTemplateFile(
- 'Interface.cs',
+ 'interface.cs',
'.cs', {
namespace: this.namespace(),
classname: this.classNameWithoutExtension(extension)
View
@@ -379,30 +379,30 @@ describe('Subgenerators with named arguments tests', function() {
util.fileCheck('should create ' + filename + ' file', filename);
});
- describe('aspnet:Interface without extension', function() {
+ describe('aspnet:interface without extension', function() {
var arg = 'IContact';
var filename = 'IContact.cs';
- util.goCreateWithArgs('Interface', [arg]);
+ util.goCreateWithArgs('interface', [arg]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /[ ]*interface[ ]*IContact/);
});
- describe('aspnet:Interface with extension', function() {
+ describe('aspnet:interface with extension', function() {
var filename = 'IContact.cs';
- util.goCreateWithArgs('Interface', [filename]);
+ util.goCreateWithArgs('interface', [filename]);
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /[ ]*interface[ ]*IContact/);
});
- describe('aspnet:Interface in cwd of project.json', function() {
+ describe('aspnet:interface in cwd of project.json', function() {
var dir = util.makeTempDir();
util.goCreateApplication('classlibrary', 'emptyTest', dir);
var arg = 'IContact';
var filename = 'IContact.cs';
console.log(arg, dir);
- util.goCreateWithArgs('Interface', [arg], path.join(dir, 'emptyTest'));
+ util.goCreateWithArgs('interface', [arg], path.join(dir, 'emptyTest'));
util.fileCheck('should create ' + filename + ' file', filename);
util.fileContentCheck(filename, 'Check file content', /[ ]*interface[ ]*IContact/);
util.fileContentCheck(filename, 'Check file content', 'namespace emptyTest');

0 comments on commit 1c66328

Please sign in to comment.