File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ def show():
4040
4141@app .command (name = "set" )
4242def set_config (
43- api_endpoint : str = typer .Option (None , help = "Set the API endpoint" )
43+ api_endpoint : str = typer .Option (None , help = "Set the API endpoint" ),
44+ username : str = typer .Option (None , help = "Set the username" ),
4445):
4546 """
4647 Set the configuration
4748 """
4849 new_config = {}
4950 if api_endpoint :
5051 new_config ["api_endpoint" ] = api_endpoint
52+ if username :
53+ new_config ["username" ] = username
5154 if not new_config :
5255 console .print ("[red]No settings provided[/red]" )
5356 raise typer .Abort ()
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ def me(
7373 project_tree = tree .add (":open_file_folder: Projects" )
7474 for project in project_list :
7575 project_tree = project_tree .add (":computer: " + project .get ('name' ))
76- project_tree .add ("[bold]Role :[/bold] " + project .get ('type ' , '' ))
77- project_tree .add ("Members: (WIP)" )
76+ project_tree .add ("[bold]Owner :[/bold] " + project .get ('owner ' , '' ))
77+ project_tree .add ("Members: " + " " . join ( project . get ( 'members' , [])) )
7878 if not project_list :
7979 project_tree .add (":warning: No projects found" )
8080
You can’t perform that action at this time.
0 commit comments