---
name: "App::SD::CLI::Command"
section: "3pm"
platform: "linux"
package: "sd"
version: "0.74-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/App::SD::CLI::Command"
---

# App::SD::CLI::Command(3pm)

### get\_content %args

This is a helper routine for use in SD commands to enable getting records in different ways such as from a file, on the commandline, or from an editor. Returns the record content.

Valid keys in `%args` are type =\> str, default\_edit =\> bool, and prefill\_props =\> `$props_hash_ref`, props\_order =\> `$order_array_ref`, footer =\> str, header =\> str.

Specifying props with prefill\_props allows you to present lists of key/value pairs (with possible default values) for a user to fill in. If you need a specific ordering of props, specify it with `"props_order"`. Specifying `"header"` and/or `"footer"` allows you to print some optional text before and/or after the list of props.

Note that you will have to post-process `$content` from the routine calling `"get_content"` in order to extract the keys and values from the returned text.
