Skip to content

Commit

Permalink
feat(version, refactoring) - Migration to .Net5
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustoDeveloper committed Apr 3, 2021
1 parent 56c1a06 commit aaa4c87
Show file tree
Hide file tree
Showing 35 changed files with 486 additions and 708 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
*.Production.json

# Build results
[Dd]ebug/
Expand Down
24 changes: 24 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
],
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
122 changes: 74 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,84 +9,110 @@ Features
--------
RunIt automate the process of 'Run as' Authentication with simple settings:

Set RunIt section in configuration file
---------------------------------------

~~~xml
<configSections>
<section name="enviroment" type="RunIt.Infra.Configuration.EnviromentConfigurationSection, RunIt"/>
</configSections>
~~~

Create a enviroment
-------------------
~~~xml
<enviroment>
</enviroment>

~~~json
"Env": {

}
~~~

Set a new application in enviroment
-----------------------------------
~~~xml
<applications>
<add alias="" filename="" name=""/>
</applications>
~~~json
"Applications": [{
"Name": "Application name",
"Alias": "Application alias",
"Filename": "Application path with file name"
}]
~~~

- alias: this required attribute allows to RunIt run without directory and identify the application
- filename: this required attribute is a full filename with directory is locate de application
- name: this attribute describe the application.
- Alias: this required attribute allows to RunIt run without directory and identify the application
- Filename: this required attribute is a full filename with directory is locate de application
- Name: this attribute describe the application.

Exemple Usage:
~~~xml
<enviroment>
<applications>
<add alias="sqlm" filename="%programfiles%/.../SqlManaagementStudio.exe" name="SQL Management Studio"/>
</applications>
</enviroment>
~~~json
"Env": {
"Applications": [{
"Name": "Visual Studio 2019",
"Alias": "vs",
"Filename": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\devenv.exe"
}]
}
~~~

Set a new credential in enviroment
Set a new domain in enviroment
----------------------------------
~~~xml
<enviroment>
<credentials>
<add name="" username="" password="" domain="" />
</credentials>
</enviroment>
~~~json
"Domains" : [{
"Name": "Domain name",
"Username": "Username to authentication on domain",
"Password": "Password to authentication on domain",
"Alias": "Unique identification of domain"
}],
~~~
- name: this required attribute identify a credential
- username: this required attribute is a username to authentication on Windows 'Run as'
- password: this required attribute is a password to authentication on Windows 'Run as'
- domain: this required attribute is a domain to authentication on Windows 'Run as'

Example Usage:
~~~xml
<enviroment>
<credentials>
<add name="dev" username="augusto.mesquita" password="l4zyp4ssw0rd" domain="MyWindowsDomain" />
</credentials>
</enviroment>
~~~json
"Env": {
"Domains" : [{
"Name": "test",
"Username": "test",
"Password": "teste",
"Alias": "tt"
}],
}
~~~

This way we have a configuration

~~~xml
<enviroment>
<applications>
<add alias="sqlm" filename="%programfiles%/.../SqlManaagementStudio.exe" name="SQL Management Studio"/>
</applications>
<credentials>
<add name="dev" username="augusto.mesquita" password="l4zyp4ssw0rd" domain="MyWindowsDomain" />
</credentials>
</enviroment>
~~~json
{
"Env": {
"Domains" : [{
"Name": "test",
"Username": "test",
"Password": "teste",
"Alias": "tt"
}],
"Applications": [{
"Name": "Visual Studio 2019",
"Alias": "vs",
"Filename": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\IDE\\devenv.exe"
},{
"Name": "SQL Management",
"Alias": "sql",
"Filename": "C:\\Program Files (x86)\\Microsoft SQL Server Management Studio 18\\Common7\\IDE\\Ssms.exe"
}]
}
}
~~~

Finally, Run It!
----------------
Open the 'CMD' and go to RunIt assmbly folder, execute a command:
~~~console
bin > RunIt.exe -e sqlm dev
bin > RunIt.exe -d tt -a sql
~~~

If need see log of the app use verbose arg `-v`:
~~~console
bin > RunIt.exe -v -d tt -a sql
trce: RunIt.Program[0]
Domain St0n3.123123Zxcasqw...
trce: RunIt.Program[0]
Aplication Visual Studio 2019...
trce: RunIt.Program[0]
Authenticating the Visual Studio 2019 with NPADSTONE\augusto.mesquita...
File: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe...
trce: RunIt.Program[0]
Executing ...C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe
~~~


Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit aaa4c87

Please sign in to comment.