<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def sendline(command):
    '''
    Run command through switch's cli

    .. code-block: bash

        salt '*' onyx.cmd sendline 'show run | include
        "username admin password 7"'
    '''
    if ping() is False:
        init()
    out, _ = DETAILS[_worker_name()].sendline(command)
    return out