99
1010const chalk = require ( 'chalk' ) ;
1111const meow = require ( 'meow' ) ;
12- const mgit = require ( './lib/index' ) ;
12+ const mrgit = require ( './lib/index' ) ;
1313const getCommandInstance = require ( './lib/utils/getcommandinstance' ) ;
1414
1515handleCli ( ) ;
@@ -33,15 +33,15 @@ function handleCli() {
3333 }
3434 } ;
3535
36- const mgitLogo = `
37- _ _
38- (_) |
39- _ __ ___ __ _ _| |_
40- | '_ \` _ \\ / _\` | | __|
41- | | | | | | (_| | | |_
42- |_| |_| |_|\\__, |_|\\__|
43- __/ |
44- |___/
36+ const logo = `
37+ _ _
38+ (_) |
39+ _ __ ___ _ __ __ _ _| |_
40+ | '_ \` _ \\| '__| / _\` | | __|
41+ | | | | | | | _ | (_| | | |_
42+ |_| |_| |_|_|(_) \\__, |_|\\__|
43+ __/ |
44+ |___/
4545` ;
4646
4747 const {
@@ -52,20 +52,20 @@ function handleCli() {
5252 yellow : y ,
5353 } = chalk ;
5454
55- const cli = meow ( `${ mgitLogo }
55+ const cli = meow ( `${ logo }
5656 ${ u ( 'Usage:' ) }
57- $ mgit ${ c ( 'command' ) } ${ y ( '[--options]' ) } -- ${ m ( '[--git-options]' ) }
57+ $ mrgit ${ c ( 'command' ) } ${ y ( '[--options]' ) } -- ${ m ( '[--git-options]' ) }
5858
5959 ${ u ( 'Commands:' ) }
6060 ${ c ( 'checkout' ) } Changes branches in repositories according to the configuration file.
6161 ${ c ( 'close' ) } Merges specified branch with the current one and remove merged branch from the remote.
62- ${ c ( 'commit' ) } Commits all changes. A shorthand for "mgit exec 'git commit -a'".
62+ ${ c ( 'commit' ) } Commits all changes. A shorthand for "mrgit exec 'git commit -a'".
6363 ${ c ( 'diff' ) } Prints changes from packages where something has changed.
6464 ${ c ( 'exec' ) } Executes shell command in each package.
6565 ${ c ( 'fetch' ) } Fetches existing repositories.
6666 ${ c ( 'pull' ) } Pulls changes in existing repositories.
6767 ${ c ( 'push' ) } Pushes changes in existing repositories to remotes.
68- ${ c ( 'save' ) } Saves hashes of packages in mgit .json. It allows to easily fix project to a specific state.
68+ ${ c ( 'save' ) } Saves hashes of packages in mrgit .json. It allows to easily fix project to a specific state.
6969 ${ c ( 'status' ) } Prints a table which contains useful information about the status of repositories.
7070 ${ c ( 'sync' ) } Updates packages to the latest versions or install missing ones.
7171
@@ -77,7 +77,7 @@ function handleCli() {
7777 ${ y ( '--hash' ) } Whether to save current commit hashes. Used only by "${ u ( 'save' ) } " command.
7878
7979 ${ y ( '--ignore' ) } Ignores packages which names match the given glob pattern. E.g.:
80- ${ g ( '> mgit exec --ignore="foo*" "git status"' ) }
80+ ${ g ( '> mrgit exec --ignore="foo*" "git status"' ) }
8181
8282 Will ignore all packages which names start from "foo".
8383 ${ g ( 'Default: null' ) }
@@ -91,7 +91,7 @@ function handleCli() {
9191 ${ y ( '--recursive' ) } Whether to install dependencies recursively. Used only by "${ u ( 'sync' ) } " command.
9292
9393 ${ y ( '--resolver-path' ) } Path to a custom repository resolver function.
94- ${ g ( 'Default: \'@mgit2 /lib/default-resolver.js\'' ) }
94+ ${ g ( 'Default: \'@mrgit /lib/default-resolver.js\'' ) }
9595
9696 ${ y ( '--resolver-url-template' ) } Template used to generate repository URL out of a
9797 simplified 'organization/repository' format of the dependencies option.
@@ -108,26 +108,26 @@ function handleCli() {
108108 whether the repository will be cloned to packages/@scope/pkgname' or 'packages/pkgname'.
109109 ${ g ( 'Default: \'git\'' ) }
110110
111- ${ y ( '--resolver-default-branch' ) } The branch name to use if not specified in mgit .json dependencies.
111+ ${ y ( '--resolver-default-branch' ) } The branch name to use if not specified in mrgit .json dependencies.
112112 ${ g ( 'Default: master' ) }
113113
114114 ${ y ( '--scope' ) } Restricts the command to packages which names match the given glob pattern.
115115 ${ g ( 'Default: null' ) }
116116
117117 ${ u ( 'Git Options:' ) }
118118 Git options are supported by the following commands: commit, diff, fetch, push.
119- Type "mgit [command] -h" in order to see which options are supported.
119+ Type "mrgit [command] -h" in order to see which options are supported.
120120` , meowOptions ) ;
121121
122122 const commandName = cli . input [ 0 ] ;
123123
124124 // If user specified a command and `--help` flag wasn't active.
125125 if ( commandName && ! cli . flags . help ) {
126- return mgit ( cli . input , cli . flags ) ;
126+ return mrgit ( cli . input , cli . flags ) ;
127127 }
128128
129129 // A user wants to see "help" screen.
130- // Missing command. Displays help screen for the entire Mgit .
130+ // Missing command. Displays help screen for the entire Mr. Git .
131131 if ( ! commandName ) {
132132 return cli . showHelp ( 0 ) ;
133133 }
@@ -141,7 +141,7 @@ function handleCli() {
141141 }
142142
143143 // Specified command is is available, displays the command's help.
144- console . log ( mgitLogo ) ;
144+ console . log ( logo ) ;
145145 console . log ( ` ${ u ( 'Command:' ) } ${ c ( commandInstance . name || commandName ) } ` ) ;
146146 console . log ( commandInstance . helpMessage ) ;
147147}
0 commit comments