{
    "content": [
        {
            "type": "text",
            "text": "# on_ac_power (man)\n\n## NAME\n\nonacpower - test whether computer is running on AC power\n\n## SYNOPSIS\n\nonacpower\n\n## DESCRIPTION\n\nonacpower  checks whether the system is running on abundant power (such as AC mains, an USB\ncharger, etc), as opposed to battery power.\n\n## TLDR\n\n> A simple utility which tests if a computer is running on line power.\n\n- Test if a computer is running on line power:\n  `on_ac_power`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **EXIT STATUS** (3 subsections)\n- **CAVEATS**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "on_ac_power",
        "section": "",
        "mode": "man",
        "summary": "onacpower - test whether computer is running on AC power",
        "synopsis": "onacpower",
        "tldr_summary": "A simple utility which tests if a computer is running on line power.",
        "tldr_examples": [
            {
                "description": "Test if a computer is running on line power",
                "command": "on_ac_power"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "EXIT STATUS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "0 (true)",
                        "lines": 1
                    },
                    {
                        "name": "1 (false)",
                        "lines": 1
                    },
                    {
                        "name": "255 (false)",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "CAVEATS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "onacpower - test whether computer is running on AC power\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "onacpower\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "onacpower  checks whether the system is running on abundant power (such as AC mains, an USB\ncharger, etc), as opposed to battery power.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "None.\n",
                "subsections": []
            },
            "EXIT STATUS": {
                "content": "",
                "subsections": [
                    {
                        "name": "0 (true)",
                        "content": ""
                    },
                    {
                        "name": "1 (false)",
                        "content": ""
                    },
                    {
                        "name": "255 (false)",
                        "content": ""
                    }
                ]
            },
            "CAVEATS": {
                "content": "The vast majority of desktops and servers have no power sensors, thus they  return  255  \"un‐\nknown\"; for most purposes you'd want to consider this answer to imply mains power — note that\n255 evaluates as false for the shell.\n\nThis program currently provides only information known to the kernel; it doesn't (yet?) query\nuserspace daemons such as nut which may provide further information.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "This  manual  page was written by Steve Dodd <steved@loth.demon.co.uk>, was updated by Thomas\nHood then by Adam Borowski.\n\n\n\n12 March 2018                             ONACPOWER(1)",
                "subsections": []
            }
        }
    }
}