-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency from feature through cli (#680)
This adds `--feature FEATURENAME` to the `pixi remove` command. Did this one first as it is probably one of the simplest commands to modify. To prepare for the full multi env integration.
- Loading branch information
1 parent
2261787
commit 6746b43
Showing
21 changed files
with
514 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,32 @@ pixi run task argument1 argument2 | |
Checkout their [documentation](https://deno.land/[email protected]/tools/task_runner#task-runner) for the syntax and available commands. | ||
This is done so that the run commands can be run across all platforms. | ||
|
||
## `remove` | ||
|
||
Removes dependencies from the `pixi.toml`. | ||
|
||
##### Options | ||
|
||
- `--manifest-path`: the path to `pixi.toml`, by default it searches for one in the parent directories. | ||
- `--host`: Specifies a host dependency, important for building a package. | ||
- `--build`: Specifies a build dependency, important for building a package. | ||
- `--pypi`: Specifies a PyPI dependency, not a conda package. | ||
- `--platform (-p)`: The platform from which the dependency should be removed. | ||
- `--feature (-f)`: The feature from which the dependency should be removed. | ||
|
||
```shell | ||
pixi remove numpy | ||
pixi remove numpy pandas pytorch | ||
pixi remove --manifest-path ~/myproject/pixi.toml numpy | ||
pixi remove --host python | ||
pixi remove --build cmake | ||
pixi remove --pypi requests | ||
pixi remove --platform osx-64 --build clang | ||
pixi remove --feature featurex clang | ||
pixi remove --feature featurex --platform osx-64 clang | ||
pixi remove --feature featurex --platform osx-64 --build clang | ||
``` | ||
|
||
## `task` | ||
|
||
If you want to make a shorthand for a specific command you can add a task for it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.