org.springframework.shell.commands

## Class OsCommands

- java.lang.Object
- - org.springframework.shell.commands.OsCommands

- All Implemented Interfaces:
    CommandMarker

      @Component
      public class OsCommands
      extends Object
      implements CommandMarker

  Command type to allow execution of native OS commands from the Spring Shell.
  Since:
    1.2.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OsCommands()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `command(String command)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OsCommands

          public OsCommands()

  - ### Method Detail

    - #### command

          @CliCommand(value="!",
                      help="Allows execution of operating system (OS) commands")
          public void command(@CliOption(key={"","command"},mandatory=false,specifiedDefaultValue="",unspecifiedDefaultValue="",help="The command to execute")
                                         String command)