@@ -3,17 +3,17 @@ pub mod commands;
33pub mod utils;
44
55use crate :: cli:: { Arg , Cli , Command } ;
6- use crate :: commands:: all:: all_command;
76use crate :: commands:: relations:: { relations_command, RelationType } ;
87use crate :: commands:: releases:: releases_command;
8+ use crate :: commands:: repo:: repo_command;
99use crate :: commands:: user:: user_command;
1010use crate :: utils:: { install, validate_and_convert_path, OS } ;
1111
1212fn main ( ) {
1313 let cli = Cli :: new ( ) . with_default_command ( "help" ) . with_commands ( vec ! [
1414 Command :: new( "version" , "Displays the current version of github-stats" ) . with_short( 'v' ) ,
1515 Command :: new( "install" , "Installs the files and directories" ) ,
16- Command :: new( "all " , "Gives all stats found on a repository as json" )
16+ Command :: new( "repo " , "Gives all stats found on a repository as json" )
1717 . with_arg(
1818 Arg :: new( )
1919 . with_name( "user" )
@@ -202,15 +202,15 @@ fn main() {
202202
203203 install ( & os) ;
204204 }
205- "all " => {
205+ "repo " => {
206206 let user = command. get_value_of ( "user" ) . throw_if_none ( ) ;
207207 let repo = command. get_value_of ( "repository" ) . throw_if_none ( ) ;
208208 let output = command. get_value_of ( "output" ) . to_option ( ) ;
209209 let display = command. has ( "display" ) ;
210210
211211 let output = output_to_path ( output) ;
212212
213- all_command ( user, repo, output, display) ;
213+ repo_command ( user, repo, output, display) ;
214214 }
215215 "releases" => {
216216 let user = command. get_value_of ( "user" ) . throw_if_none ( ) ;
0 commit comments