Esempio n. 1
0
        private void KeyAction(ActionNode node, IToken token, IResultAccumulator resultAccumulator)
        {
            var command = resultAccumulator.EnsureExecutorCommand();
            var alias   = node.Properties["alias"];
            var key     = TokenToKey(token);

            var entry = CliCommandEntry.CreateKeyValuePair(alias, key);

            command.Entries.Add(entry);
        }
Esempio n. 2
0
        private void ArgumentAction(ActionNode node, IToken token, IResultAccumulator resultAccumulator)
        {
            var command = resultAccumulator.EnsureExecutorCommand();

            var alias    = node.Properties["alias"];
            var argument = TokenToArgument(token);
            var entry    = CliCommandEntry.CreateArgument(alias, argument);

            command.Entries.Add(entry);
        }
Esempio n. 3
0
 private void ExecutorAction(ActionNode node, IToken token, IResultAccumulator resultAccumulator)
 {
     resultAccumulator.EnsureExecutorCommand(node.Properties["executor-name"]);
 }