summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/modules/dotkit.py
blob: 159defe3a6929c3246283e99bdb0e999314f775e (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):
    dotkit_parser = parser.add_parser(
        'dotkit', help='manipulate dotkit module files'
    )
    spack.cmd.modules.setup_parser(dotkit_parser)

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