def do_deployments(self, line):
        """
        List deployments
        Syntax:
            deployments [namespace=default]
        """
        cmd = Command(line)
        namespace = cmd.get(0)
        for deploy in self.k8s_inventory.find_deployments(
            namespace=namespace,
        ):
            print(deploy)

        List deployments
        Syntax:
            deployments [namespace=default]
        
powerfulseal/cli/pscmd.py