Skip to content

Commit

Permalink
Include access to Windows OS operations to the Qatam CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasAlhwid committed Oct 24, 2024
1 parent aa3a6c2 commit 8e53c0d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Qatam-CLI.psm1
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Imports
Import-Module "$PSScriptRoot\src\windows\modules\Manage-Design.psm1" -Force
Import-Module "$PSScriptRoot\src\windows\modules\Manage-Git.psm1" -Force
Import-Module "$PSScriptRoot\src\windows\modules\Manage-Windows.psm1" -Force

# Links
$urlQatamCLIGitHubReleases = "https://github.com/AnasAlhwid/qatam-cli/releases"
Expand Down Expand Up @@ -156,6 +157,15 @@ function Show-QatamCLIHelp {
$(Format-Shape -CT "|")
$(Format-Shape -CT "|")

$(Format-Shape `
-M "w $(Format-Color -TC "clear" -Str "|" -NC "gold") windows" `
-CT "|" `
-TC "gold" `
-Str "Windows OS Service" `
-F $(Clear-Format -F "gold") `
)
$(Format-Shape -CT "|")

$(Format-Shape `
-M "g $(Format-Color -TC "clear" -Str "|" -NC "gold") git" `
-CT "|" `
Expand Down Expand Up @@ -228,6 +238,13 @@ function Qatam {
Show-QatamCLIHelp
Write-Output ""
}
{ $_ -in @("windows", "w") } {
<#
- A function that displays or executes the "Windows" service commands.
* The function imported from "$PSScriptRoot\src\windows\modules\Manage-Windows.psm1" file.
#>
Select-Windows -Command $Command
}
{ $_ -in @("git", "g") } {
<#
- A function that displays or executes the "Git" service commands.
Expand Down Expand Up @@ -256,6 +273,7 @@ function Qatam {
-M "!" `
-TC "yellow" `
-Str "Invalid command, run: $(Format-Color -TC "green" -Str "qatam help") to see all services." `
-F "$(Clear-Format -F "green")" `
)
Write-Output ""
}
Expand Down

0 comments on commit 8e53c0d

Please sign in to comment.