mirror of https://github.com/ashikslab/smartsh.git
Compare commits
4 Commits
5bf78b2e9a
...
06dca429e9
Author | SHA1 | Date |
---|---|---|
Ashik K | 06dca429e9 | |
Ashik K | f0bc3f5c95 | |
Ashik K | 44b2b03196 | |
Ashik K | e901a56468 |
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) [2023]] [Ashik K | mail@ashik.se]
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -87,7 +87,12 @@ if is_in_teacher_mode == False and apioutput is not None:
|
||||||
print("Executing command: " + apioutput)
|
print("Executing command: " + apioutput)
|
||||||
if colorize_output:
|
if colorize_output:
|
||||||
print("\033[93m")
|
print("\033[93m")
|
||||||
os.system(apioutput)
|
if tune_for_powershell:
|
||||||
|
print("***** PowerShell support is experimental*****")
|
||||||
|
print("***** You may have better luck if you copy the command and paste it into a PowerShell window *****")
|
||||||
|
os.system("powershell.exe -Command " + apioutput)
|
||||||
|
else:
|
||||||
|
os.system(apioutput)
|
||||||
if colorize_output:
|
if colorize_output:
|
||||||
print("\033[0m")
|
print("\033[0m")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue