You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A PowerCommands application can be started with arguments from the commandline which is usefull when you want to use your PowerCommands implementation to perform something as a automated job.
3
+
4
+
The code below shos a dummie example of how you design your Command to run as an automatated task, notice the **return Quit()** at the end of the Run() method, that will trigger the program to quit the application.
5
+
6
+

7
+
8
+
You just startup your PowerCommands application from with the parameter "job", like this:
9
+
```
10
+
"powercommands.exe job"
11
+
```
12
+
Your PowerCommands application may of course have so other name and your command could have Input parameters that will be passed on from the command line like this:
Copy file name to clipboardExpand all lines: Docs/PowerCommandDesignAttribute.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Describe your quotes, separate them with | use // to display a commented line ov
46
46
Suggestion will be added to the autocomplete functionallity so the user could use tab to cycle trough the commands and commands with a suggested argument.
47
47
### Options
48
48
Describe your options, separate them with | use // to display a commented line over the actual option, all options that are described will also be used by the autocomplete functionallity to help the user find the right option.
49
-
Read more about [options](options.md).
49
+
Read more about [options](Options.md).
50
50
### secrets
51
51
Describe your secrets that the commands needs, you probably want to declare a secret as required with **!** character, in the sample above secret **cnDatabase** is marked as required.
Copy file name to clipboardExpand all lines: Docs/Secrets.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## Configure your environment to use Encryption/Decryption and Secrets functionallity
4
4
## Good to know
5
5
Secret is initialized the fist time you startup a new power command project on your machine, the same keys for encryption/decryption is used by all your PowerCommands based applications on the same machine.
6
-
If you setup PowerCommands on a diffrent machine, a new key for encryption/decryption will be used, meaning you have to create the secrets again on that machine. But you can move the keys manually, but I do not think that you should do that.
6
+
If you setup PowerCommands on a diffrent machine, a new key for encryption/decryption will be created for that machine. It is possible to manually move both the key and the encrypted secrets from one machine to another, but it is not recommended and therefore not documented.
7
7
## Use the secrets built in functionallity
8
8
Create secret with built in commands named secret, like this:
Copy file name to clipboardExpand all lines: README.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,18 @@ You could se PowerCommands as an easy Create your CLI applikation starter kit. I
4
4
[Follow progress on twitter](https://twitter.com/PowerCommands) <imgsrc="https://github.com/PowerCommands/PowerCommands2022/blob/main/Docs/images/Twitter.png?raw=true"alt="drawing"width="20"/>
5
5
6
6
### The core components offering this to your custom PowerCommands
0 commit comments