File size: 1,070 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | // 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_UPDATE_HPP
#define MAMBA_API_UPDATE_HPP
namespace mamba
{
class Configuration;
enum class UpdateAll : bool
{
No = false,
Yes = true,
};
enum class PruneDeps : bool
{
No = false,
Yes = true,
};
enum class EnvUpdate : bool // Specific to `env update` command
{
No = false,
Yes = true,
};
enum class RemoveNotSpecified : bool // Specific to `env update` command
{
No = false,
Yes = true,
};
struct UpdateParams
{
UpdateAll update_all = UpdateAll::No;
PruneDeps prune_deps = PruneDeps::No;
EnvUpdate env_update = EnvUpdate::No;
RemoveNotSpecified remove_not_specified = RemoveNotSpecified::No;
};
void update(Configuration& config, const UpdateParams& update_params = {});
}
#endif
|