Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tasks/ChocoTask/choco.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ Write-Host 'Ensuring latest Chocolatey version is installed.'
Ensure-Chocolatey -ChocoExePath "$choco"

Write-Host "Preparing to install Chocolatey packages: $Packages."
Install-Packages -ChocoExePath "$choco" -Packages $Packages -PackageVersions $PackageVersions -AdditionalOptions $AdditionalOptions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure you intended this change in choco.ps1, did you?

Install-Packages -ChocoExePath "$choco" -Packages $Packages -$PackageVersions -AdditionalOptions $AdditionalOptions

Write-Host "`nThe artifact was applied successfully.`n"
12 changes: 12 additions & 0 deletions Tasks/ChocoTask/task.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# This task installs choco package files
#
# USAGE
#
# - task: choco
# inputs:
# packages: "vscode, azure-cli"
# Versions: "{ 'vscode'='1.80.0'; 'azure-cli'='2.50.0' }"
# additionalOptions: "--verbose --ignore-dependencies"
Comment on lines +5 to +9
Copy link
Contributor

@antonellaavogadro antonellaavogadro Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# - task: choco
# inputs:
# packages: "vscode, azure-cli"
# Versions: "{ 'vscode'='1.80.0'; 'azure-cli'='2.50.0' }"
# additionalOptions: "--verbose --ignore-dependencies"
#- task: choco
# inputs:
# package: "vscode"
# version: "1.80.0"
# ignoreChecksums: true
# - task: choco
# inputs:
# package: "azure-cli"
# version: "2.50.0"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two examples that I found worked well with the LLMs are:

    examples:
      - task: choco
        description: install OracleJDK 17.0.1
        inputs:
          package: oraclejdk
          version: 17.0.1
      - task: choco
        description: install notepad++
        inputs:
          package: notepadplusplus

#


name: choco
command: "./choco.ps1 -Packages {{packages}} -Versions {{Versions}}"
inputs:
Expand Down
11 changes: 10 additions & 1 deletion Tasks/install-vs-extension/task.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# This is a Visual Studio extension installation task for Dev Box.
# This is a Visual Studio extension installation task for Dev Box.
# It accepts a Markplace Item Name (as used in the URI of a given Visual Studio Extension Maketplace entry)
#
# USAGE
#
# - task: install-vs-extension
# inputs:
# marketplaceItemName: "GitHub.copilotvs"
#


name: install-vs-extension
description: Installs a Visual Studio extension
Expand Down
8 changes: 8 additions & 0 deletions Tasks/powershell/task.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# This is a simple powershell command execution task for Dev Box.
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples that I saw worked well with the LLMs were:

    examples:
      - task: powershell
        description: print hello world
        inputs:
          command: "Write-Host hello, world!"
      - task: powershell
        description: run script
        inputs:
          command: "./script.ps1"
          workingDirectory: C:\\provisioning\\temp

# USAGE
#
# - task: powershell
# inputs:
# command: "Get-Date"
# workingDirectory: "."
#

name: powershell
description: Execute a powershell command
Expand Down