summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/modules/tcl.py
blob: c3005845053f9e410306a30443267e351ecd7ee8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

import functools

import spack.cmd.modules


def add_command(parser, command_dict):
    tcl_parser = parser.add_parser(
        'tcl', help='manipulate non-hierarchical module files'
    )
    spack.cmd.modules.setup_parser(tcl_parser)

    command_dict['tcl'] = functools.partial(
        spack.cmd.modules.modules_cmd, module_type='tcl'
    )