File size: 1,068 Bytes
2492322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2019, QuantStack and Mamba Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.

#ifndef MAMBA_API_SHELL_HPP
#define MAMBA_API_SHELL_HPP

#include <string>
#include <string_view>

#include "mamba/core/palette.hpp"
#include "mamba/fs/filesystem.hpp"

namespace mamba
{
    class Context;

    void shell_init(Context& ctx, const std::string& shell_type, const fs::u8path& prefix);
    void shell_deinit(Context& ctx, const std::string& shell_type, const fs::u8path& prefix);
    void shell_reinit(Context& ctx, const fs::u8path& prefix);
    void shell_hook(Context& ctx, const std::string& shell_type);
    void
    shell_activate(Context& ctx, const fs::u8path& prefix, const std::string& shell_type, bool stack);
    void shell_reactivate(Context& ctx, const std::string& shell_type);
    void shell_deactivate(Context& ctx, const std::string& shell_type);
    void shell_enable_long_path_support(Palette palette = Palette::no_color());
}

#endif