コード例 #1
0
ファイル: argexecutor.py プロジェクト: jlaw9/TRI_Dev
    def delete(self):
        delete = Delete()

        if self.args['sample'] is not None:
            delete.delete_sample(self.args['sample'])

        elif self.args['collection'] is not None:
            delete.delete_collection(self.args['collection'])

        else:
            print "See please --help to specify something to delete."
コード例 #2
0
ファイル: argexecutor.py プロジェクト: jlaw9/TRI_Dev
    def delete(self):
        """
        This is what is carried out when the delete option is chosen.

        :return:
        """
        delete = Delete()

        # This deletes a specific sample
        if self.args['sample'] is not None:
            delete.delete_sample(self.args['sample'])

        # This deletes a specific collection
        elif self.args['collection'] is not None:
            delete.delete_collection(self.args['collection'])

        else:
            print "See please --help to specify something to delete."