File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ static async Task Main(string[] args)
4141 var createdUnityProject = await _untiyCli . CreateUnityProject ( _project ) ;
4242 if ( createdUnityProject ) await _untiyCli . OpenUnityProject ( _project ) ;
4343 if ( createdUnityProject ) Output . WriteSuccessWithTick ( "Complete" ) ;
44+
45+ if ( createdUnityProject ) _project . OpenProjectDirectory ( ) ;
4446 }
4547
4648 private static bool DisplayHelp ( )
Original file line number Diff line number Diff line change 1- using UnityQuickStart . App . IO ;
1+ using System . Diagnostics ;
2+ using System . Runtime . InteropServices ;
3+ using UnityQuickStart . App . IO ;
24using UnityQuickStart . App . Settings ;
35
46namespace UnityQuickStart . App . Project
@@ -129,5 +131,21 @@ public async Task SetProjectPath()
129131 Directory . SetCurrentDirectory ( projectPath ) ;
130132 Output . WriteSuccessWithTick ( $ "Ok project path set: { projectPath } ") ;
131133 }
134+
135+ public void OpenProjectDirectory ( )
136+ {
137+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
138+ {
139+ Process . Start ( "explorer.exe" , ProjectPath ) ;
140+ }
141+ else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
142+ {
143+ Process . Start ( "open" , ProjectPath ) ;
144+ }
145+ else
146+ {
147+ Console . WriteLine ( "Unsupported OS" ) ;
148+ }
149+ }
132150 }
133151}
Original file line number Diff line number Diff line change @@ -72,6 +72,12 @@ unityquick [options]
7272unityquick -p " C:\Program Files\Unity\Hub\Editor"
7373```
7474
75+
76+ https://github.com/PaulNonatomic/UnityQuickStartCli/assets/4581647/6147804f-edf1-4548-8b46-555aa074e24b
77+
78+
79+
80+
7581## Code Structure
7682
7783- [ ` Git.cs ` ] ( https://github.com/PaulNonatomic/UnityQuickStartCli/blob/develop/App/Git/Git.cs ) : Handles Git-related functionalities.
You can’t perform that action at this time.
0 commit comments