title: How to use current path in Angular schematics
body: <p>I'm developing a schematic which produces some files. I'd like to have new files in current directory, i.e.</p>
  
  <p>My project root is <code>/src/app</code>. When I am in folder <code>/src/app/features/f1</code>, and type</p>
  
  <p><code>ng g my:some-schemaitc --name=name</code></p>
  
  <p>I am expecting new file</p>
  
  <p><code>/src/app/features/f1/name.ts</code></p>
  
  <p>instead, the result is</p>
  
  <p><code>/src/app/name.ts</code></p>
  
  <p>I'd like to achieve same behavior as <code>ng g class --name=name</code>. When I type <code>ng g class --name=class</code> in directory <code>/src/app/features/f1</code>, the result will be</p>
  
  <p><code>/src/app/features/f1/class.ts</code></p>
  
  <p>I tried to mimic Angular <code>ng g class</code> behavior <a href="https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/class/index.ts" rel="nofollow noreferrer">schematics source code</a>, but without satisfying result. My code is almost same.</p>
  
  <p>Have someone made use of current path?</p>