This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Retrieving the first ECR Repository" | |
aws ecr describe-repositories --query "repositories[0]" | |
echo "Retrieving the first ECR Repository's name as a variable in BASH" | |
REPOSITORY_NAME=$(aws ecr describe-repositories --query "repositories[0].[repositoryName]" --output text) | |
echo "Retrieved Name for first repository in my ECR Registry: $REPOSITORY_NAME" | |
echo "Deleting repository..." | |
# NOTE: THIS IS A DELETE COMMAND. DON'T UNCOMMENT THE LINE BELOW AND RUN IT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./get-and-delete-ecr-repo.sh | |
Retrieving the first ECR Repository | |
{ | |
"repositoryArn": "arn:aws:ecr:us-west-2:xxxxxxxxxxxx:repository/temporary/slow-cooker-api", | |
"registryId": "xxxxxxxxxxxx", | |
"repositoryName": "temporary/slow-cooker-api", | |
"repositoryUri": "xxxxxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/temporary/slow-cooker-api", | |
"createdAt": 1564993261.0 | |
} | |
Retrieving the first ECR Repository's name as a variable in BASH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet tool install -g dotnet-roundhouse | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can invoke the tool using the following command: rh | |
Tool 'dotnet-roundhouse' (version '1.1.0') was successfully installed. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet tool install -g <NugetPackageName> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.2</TargetFramework> | |
<PackAsTool>true</PackAsTool> | |
<ToolCommandName>sayhowdy</ToolCommandName> | |
<PackageOutputPath>./nupkg</PackageOutputPath> | |
<AssemblyName>SayHowdy</AssemblyName> | |
<RootNamespace>SayHowdy</RootNamespace> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
//namespace matches what is in the csproj attributes | |
namespace SayHowdy | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Dev\github\DotNetTool.SayHowdy>dotnet pack | |
Microsoft (R) Build Engine version 16.2.32702+c4012a063 for .NET Core | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Restore completed in 36.42 ms for D:\Dev\github\DotNetTool.SayHowdy\DotNetTool.SayHowdy.csproj. | |
DotNetTool.SayHowdy -> D:\Dev\github\DotNetTool.SayHowdy\bin\Debug\netcoreapp2.2\SayHowdy.dll | |
DotNetTool.SayHowdy -> D:\Dev\github\DotNetTool.SayHowdy\bin\Debug\netcoreapp2.2\SayHowdy.dll | |
DotNetTool.SayHowdy -> D:\Dev\github\DotNetTool.SayHowdy\bin\Debug\netcoreapp2.2\publish\ | |
Successfully created package 'D:\Dev\github\DotNetTool.SayHowdy\nupkg\SayHowdy.1.0.0.nupkg'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Dev\github\DotNetTool.SayHowdy>dotnet tool install --global --add-source ./nupkg sayhowdy | |
You can invoke the tool using the following command: sayhowdy | |
Tool 'sayhowdy' (version '1.0.0') was successfully installed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Dev\github\DotNetTool.SayHowdy>sayhowdy Medium | |
Howdy, Medium |