@@ -8,7 +8,6 @@ const fs = require('graceful-fs');
88const chalk = require ( 'chalk' ) ;
99const prompts = require ( 'prompts' ) ;
1010const FS = require ( './fs-wrapper' ) ;
11- const Anonymize = require ( './anonymize' ) ;
1211const RemoteTemplate = require ( './remote-template' ) ;
1312const { getElmBinary, getElmVersion} = require ( './elm-binary' ) ;
1413const TemplateDependencies = require ( './template-dependencies' ) ;
@@ -31,7 +30,7 @@ async function promptAndCreate(options) {
3130 message : `Would you like me to create ${ chalk . yellow (
3231 'elm.json'
3332 ) } and ${ chalk . yellow ( 'src/ReviewConfig.elm' ) } inside ${ chalk . yellow (
34- Anonymize . path ( options , directory )
33+ directory
3534 ) } ?`,
3635 initial : true
3736 } ) ;
@@ -94,12 +93,12 @@ async function createFromTemplate(options, template, directory) {
9493 */
9594function logInit ( options , directory ) {
9695 const message = options . template
97- ? templateInitMessage ( options , directory )
98- : regularInitMessage ( options , directory ) ;
96+ ? templateInitMessage ( directory )
97+ : regularInitMessage ( directory ) ;
9998
10099 console . log (
101100 `All done! I have created a review project at ${ chalk . green (
102- ( Anonymize . path ( options , directory ) + '/' ) . replace ( / \/ \/ / g, '/' )
101+ ( directory + '/' ) . replace ( / \/ \/ / g, '/' )
103102 ) } for you.
104103
105104${ message }
@@ -116,29 +115,27 @@ ${options.template ? templateRecommendation : ''}`
116115}
117116
118117/**
119- * @param {Options } options
120118 * @param {Path } directory
121119 * @returns {string }
122120 */
123- function regularInitMessage ( options , directory ) {
121+ function regularInitMessage ( directory ) {
124122 return `You can now define your review configuration by editing ${ chalk . green (
125- Anonymize . path ( options , path . join ( directory , 'src/ReviewConfig.elm' ) )
123+ path . join ( directory , 'src/ReviewConfig.elm' )
126124 ) } .`;
127125}
128126
129127const orange = chalk . keyword ( 'orange' ) ;
130128
131129/**
132- * @param {Options } options
133130 * @param {Path } directory
134131 * @returns {string }
135132 */
136- function templateInitMessage ( options , directory ) {
133+ function templateInitMessage ( directory ) {
137134 return `You chose to use someone's review configuration which can be great to get started
138135but don't forget to review the configuration to make sure it fits your needs,
139136both by removing rules you disagree with and by finding new rules to aid you.
140137You can do so by editing ${ chalk . green (
141- Anonymize . path ( options , path . join ( directory , 'src/ReviewConfig.elm' ) )
138+ path . join ( directory , 'src/ReviewConfig.elm' )
142139 ) } .`;
143140}
144141
0 commit comments