@@ -14,7 +14,7 @@ const program = new Command();
1414program
1515 . enablePositionalOptions ( )
1616 . version ( packageJson . version , '-v, --version' )
17- . name ( 'codeshift ' )
17+ . name ( 'hypermod ' )
1818 . argument ( '[path...]' )
1919 . usage ( '[global options] <file-paths>...' )
2020 . option (
@@ -74,16 +74,16 @@ program
7474 `
7575Examples:
7676 # Run a transform for "@mylib/button" version 3.0.0 only
77- $ codeshift --packages @mylib/button@3.0.0 /project/src
77+ $ hypermod --packages @mylib/button@3.0.0 /project/src
7878
7979 # Run all transforms for "@mylib/button" greater than version 3.0.0 and @mylib/range greater than 4.0.0
80- $ codeshift --sequence --packages @mylib/button@3.0.0,@mylib/range@4.0.0 /project/src
80+ $ hypermod --sequence --packages @mylib/button@3.0.0,@mylib/range@4.0.0 /project/src
8181
8282 # Run the "my-custom-transform" transform
83- $ codeshift -t path/to/my-custom-transform /project/src
83+ $ hypermod -t path/to/my-custom-transform /project/src
8484
85- # Display a prompt with a list of codemods from my local \`codeshift .config.js\` file(s).
86- $ codeshift /project/src` ,
85+ # Display a prompt with a list of codemods from my local \`hypermod .config.js\` file(s).
86+ $ hypermod /project/src` ,
8787 )
8888 . action ( ( path , options ) => main ( path , options ) ) ;
8989
@@ -96,15 +96,15 @@ program
9696 `
9797Examples:
9898 # Print a list of available codemods for a single package
99- $ codeshift list mylib
99+ $ hypermod list mylib
100100
101101 # Print a list of available codemods for multiple packages
102- $ codeshift list @atlaskit/avatar @emotion/monorepo` ,
102+ $ hypermod list @atlaskit/avatar @emotion/monorepo` ,
103103 ) ;
104104
105105program
106106 . command ( 'init [path]' )
107- . description ( 'creates a new codeshift package' )
107+ . description ( 'creates a new hypermod package' )
108108 . option ( '-c, --config-only' , 'Output only a configuration file' )
109109 . option ( '-t, --transform <value>' , 'Transform version' )
110110 . option ( '-p, --preset <value>' , 'Preset transfrom' )
@@ -115,32 +115,32 @@ program
115115 'after' ,
116116 `
117117Examples:
118- # Initializes an empty codeshift package at the current directory
119- $ codeshift init --transform 10.0.0 my-codemod-package
118+ # Initializes an empty hypermod package at the current directory
119+ $ hypermod init --transform 10.0.0 my-codemod-package
120120
121- # Initializes an empty codeshift package at the current directory
122- $ codeshift init --transform 10.0.0 .
121+ # Initializes an empty hypermod package at the current directory
122+ $ hypermod init --transform 10.0.0 .
123123
124- # Initializes a new codeshift package with a transform for 10.0.0 at the foobar dir
125- $ codeshift init --transform 10.0.0 ~/foobar
124+ # Initializes a new hypermod package with a transform for 10.0.0 at the foobar dir
125+ $ hypermod init --transform 10.0.0 ~/foobar
126126
127- # Initializes a new codeshift package with a preset "update-imports"
128- $ codeshift init --package-name foobar --preset update-imports foobar
127+ # Initializes a new hypermod package with a preset "update-imports"
128+ $ hypermod init --package-name foobar --preset update-imports foobar
129129
130130 # Initializes a configuration file only
131- $ codeshift init --config-only --preset update-imports path/to/src` ,
131+ $ hypermod init --config-only --preset update-imports path/to/src` ,
132132 ) ;
133133
134134program
135135 . command ( 'validate [path]' )
136- . description ( 'validates if a codeshift package is publishable' )
136+ . description ( 'validates if a hypermod package is publishable' )
137137 . action ( path => validate ( path ) )
138138 . addHelpText (
139139 'after' ,
140140 `
141141Examples:
142- $ codeshift validate
143- $ codeshift validate ./codemods/my-codemods` ,
142+ $ hypermod validate
143+ $ hypermod validate ./codemods/my-codemods` ,
144144 ) ;
145145
146146( async function ( ) {
0 commit comments