Skip to content

Commit 44216fd

Browse files
committed
pixi: updated with scraped structure
1 parent 91a2e6a commit 44216fd

File tree

335 files changed

+4861
-808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+4861
-808
lines changed

completers/common/pixi_completer/cmd/add.go

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,41 @@ import (
77
)
88

99
var addCmd = &cobra.Command{
10-
Use: "add",
11-
Short: "Adds dependencies to the workspace",
12-
Run: func(cmd *cobra.Command, args []string) {},
10+
Use: "add",
11+
Short: "Adds dependencies to the workspace",
12+
Aliases: []string{"a"},
13+
Run: func(cmd *cobra.Command, args []string) {},
1314
}
1415

1516
func init() {
1617
carapace.Gen(addCmd).Standalone()
1718

1819
addCmd.Flags().String("auth-file", "", "Path to the file containing the authentication token")
1920
addCmd.Flags().String("branch", "", "The git branch")
20-
addCmd.Flags().Bool("build", false, "The specified dependencies are build dependencies")
21-
addCmd.Flags().String("concurrent-downloads", "", "Max concurrent network requests")
22-
addCmd.Flags().String("concurrent-solves", "", "Max concurrent solves")
21+
addCmd.Flags().String("concurrent-downloads", "", "Max concurrent network requests, default is `50`")
22+
addCmd.Flags().String("concurrent-solves", "", "Max concurrent solves, default is the number of CPUs")
2323
addCmd.Flags().Bool("editable", false, "Whether the pypi requirement should be editable")
2424
addCmd.Flags().StringP("feature", "f", "", "The feature for which the dependency should be modified")
25-
addCmd.Flags().Bool("frozen", false, "Install the environment as defined in the lockfile")
25+
addCmd.Flags().Bool("frozen", false, "Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file")
2626
addCmd.Flags().StringP("git", "g", "", "The git url to use when adding a git dependency")
27-
addCmd.Flags().Bool("host", false, "The specified dependencies are host dependencies")
28-
addCmd.Flags().Bool("locked", false, "Check if lockfile is up-to-date before installing the environment")
29-
addCmd.Flags().StringP("manifest-path", "m", "", "The path to pixi.toml, pyproject.toml, or the workspace directory")
27+
addCmd.Flags().Bool("locked", false, "Check if lockfile is up-to-date before installing the environment, aborts when lockfile isn't up-to-date with the manifest file")
3028
addCmd.Flags().Bool("no-install", false, "Don't modify the environment, only modify the lock-file")
31-
addCmd.Flags().Bool("no-lockfile-update", false, "Skips lock-file updates")
3229
addCmd.Flags().String("pinning-strategy", "", "Set pinning strategy")
33-
addCmd.Flags().StringP("platform", "p", "", "The platform for which the dependency should be modified")
34-
addCmd.Flags().Bool("pypi", false, "The specified dependencies are pypi dependencies")
35-
addCmd.Flags().String("pypi-keyring-provider", "", "Specifies whether to use the keyring for PyPI")
30+
addCmd.Flags().StringSliceP("platform", "p", nil, "The platform for which the dependency should be modified")
31+
addCmd.Flags().Bool("pypi", false, "The specified dependencies are pypi dependencies. Conflicts with `host` and `build`")
32+
addCmd.Flags().String("pypi-keyring-provider", "", "Specifies whether to use the keyring to look up credentials for PyPI")
3633
addCmd.Flags().String("rev", "", "The git revision")
37-
addCmd.Flags().Bool("run-post-link-scripts", false, "Run post-link scripts")
34+
addCmd.Flags().Bool("run-post-link-scripts", false, "Run post-link scripts (insecure)")
3835
addCmd.Flags().StringP("subdir", "s", "", "The subdirectory of the git repository to use")
3936
addCmd.Flags().String("tag", "", "The git tag")
4037
addCmd.Flags().Bool("tls-no-verify", false, "Do not verify the TLS certificate of the server")
41-
addCmd.Flags().String("tls-root-certs", "", "Which TLS root certificates to use")
42-
addCmd.Flags().Bool("use-environment-activation-cache", false, "Use environment activation cache")
38+
addCmd.Flags().String("tls-root-certs", "", "Which TLS root certificates to use: 'webpki' (bundled Mozilla roots), 'native' (system store), or 'all' (both)")
39+
addCmd.Flags().Bool("use-environment-activation-cache", false, "Use environment activation cache (experimental)")
4340
rootCmd.AddCommand(addCmd)
4441

4542
carapace.Gen(addCmd).FlagCompletion(carapace.ActionMap{
4643
"auth-file": carapace.ActionFiles(),
4744
"feature": pixi.ActionFeatures(),
48-
"manifest-path": carapace.ActionFiles(),
4945
"pinning-strategy": carapace.ActionValues("semver", "minor", "major", "latest-up", "exact-version", "no-pin"),
5046
"platform": pixi.ActionPlatforms(),
5147
"pypi-keyring-provider": carapace.ActionValues("disabled", "subprocess"),
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var auth_helpCmd = &cobra.Command{
9+
Use: "help",
10+
Short: "Print this message or the help of the given subcommand(s)",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(auth_helpCmd).Standalone()
16+
17+
authCmd.AddCommand(auth_helpCmd)
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var auth_help_helpCmd = &cobra.Command{
9+
Use: "help",
10+
Short: "Print this message or the help of the given subcommand(s)",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(auth_help_helpCmd).Standalone()
16+
17+
auth_helpCmd.AddCommand(auth_help_helpCmd)
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var auth_help_loginCmd = &cobra.Command{
9+
Use: "login",
10+
Short: "Store authentication information for a given host",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(auth_help_loginCmd).Standalone()
16+
17+
auth_helpCmd.AddCommand(auth_help_loginCmd)
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var auth_help_logoutCmd = &cobra.Command{
9+
Use: "logout",
10+
Short: "Remove authentication information for a given host",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(auth_help_logoutCmd).Standalone()
16+
17+
auth_helpCmd.AddCommand(auth_help_logoutCmd)
18+
}

completers/common/pixi_completer/cmd/auth_login.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ func init() {
1515
carapace.Gen(auth_loginCmd).Standalone()
1616

1717
auth_loginCmd.Flags().String("conda-token", "", "The token to use on anaconda.org / quetz authentication")
18-
auth_loginCmd.Flags().String("password", "", "The password to use for basic HTTP authentication")
18+
auth_loginCmd.Flags().String("password", "", "The password to use (for basic HTTP authentication)")
1919
auth_loginCmd.Flags().String("s3-access-key-id", "", "The S3 access key ID")
2020
auth_loginCmd.Flags().String("s3-secret-access-key", "", "The S3 secret access key")
2121
auth_loginCmd.Flags().String("s3-session-token", "", "The S3 session token")
22-
auth_loginCmd.Flags().String("token", "", "The token to use for authentication with prefix.dev")
23-
auth_loginCmd.Flags().String("username", "", "The username to use for basic HTTP authentication")
22+
auth_loginCmd.Flags().String("token", "", "The token to use (for authentication with prefix.dev)")
23+
auth_loginCmd.Flags().String("username", "", "The username to use (for basic HTTP authentication)")
2424
authCmd.AddCommand(auth_loginCmd)
2525
}

completers/common/pixi_completer/cmd/build.go

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,32 @@ import (
77

88
var buildCmd = &cobra.Command{
99
Use: "build",
10-
Short: "Build a conda package from a Pixi package",
10+
Short: "Build a conda package from a Pixi package.",
1111
Run: func(cmd *cobra.Command, args []string) {},
1212
}
1313

1414
func init() {
1515
carapace.Gen(buildCmd).Standalone()
1616

17-
buildCmd.Flags().Bool("as-is", false, "Shorthand for --no-install and --frozen")
17+
buildCmd.Flags().Bool("as-is", false, "Shorthand for the combination of --no-install and --frozen")
1818
buildCmd.Flags().String("auth-file", "", "Path to the file containing the authentication token")
1919
buildCmd.Flags().StringP("build-dir", "b", "", "The directory to use for incremental builds artifacts")
20-
buildCmd.Flags().String("build-platform", "", "The build platform to use for building")
20+
buildCmd.Flags().String("build-platform", "", "The build platform to use for building (defaults to the current platform)")
2121
buildCmd.Flags().BoolP("clean", "c", false, "Whether to clean the build directory before building")
22-
buildCmd.Flags().String("concurrent-downloads", "", "Max concurrent network requests")
23-
buildCmd.Flags().String("concurrent-solves", "", "Max concurrent solves")
24-
buildCmd.Flags().Bool("frozen", false, "Install the environment as defined in the lockfile")
25-
buildCmd.Flags().Bool("locked", false, "Check if lockfile is up-to-date before installing the environment")
22+
buildCmd.Flags().String("concurrent-downloads", "", "Max concurrent network requests, default is `50`")
23+
buildCmd.Flags().String("concurrent-solves", "", "Max concurrent solves, default is the number of CPUs")
24+
buildCmd.Flags().Bool("frozen", false, "Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file")
25+
buildCmd.Flags().Bool("locked", false, "Check if lockfile is up-to-date before installing the environment, aborts when lockfile isn't up-to-date with the manifest file")
2626
buildCmd.Flags().Bool("no-install", false, "Don't modify the environment, only modify the lock-file")
27-
buildCmd.Flags().Bool("no-lockfile-update", false, "Skips lock-file updates")
2827
buildCmd.Flags().StringP("output-dir", "o", "", "The output directory to place the built artifacts")
29-
buildCmd.Flags().String("path", "", "The path to a directory containing a package manifest")
28+
buildCmd.Flags().String("path", "", "The path to a directory containing a package manifest, or to a specific manifest file")
3029
buildCmd.Flags().String("pinning-strategy", "", "Set pinning strategy")
31-
buildCmd.Flags().String("pypi-keyring-provider", "", "Specifies whether to use the keyring for PyPI")
32-
buildCmd.Flags().Bool("run-post-link-scripts", false, "Run post-link scripts")
33-
buildCmd.Flags().StringP("target-platform", "t", "", "The target platform to build for")
30+
buildCmd.Flags().String("pypi-keyring-provider", "", "Specifies whether to use the keyring to look up credentials for PyPI")
31+
buildCmd.Flags().Bool("run-post-link-scripts", false, "Run post-link scripts (insecure)")
32+
buildCmd.Flags().StringP("target-platform", "t", "", "The target platform to build for (defaults to the current platform)")
3433
buildCmd.Flags().Bool("tls-no-verify", false, "Do not verify the TLS certificate of the server")
35-
buildCmd.Flags().String("tls-root-certs", "", "Which TLS root certificates to use")
36-
buildCmd.Flags().Bool("use-environment-activation-cache", false, "Use environment activation cache")
34+
buildCmd.Flags().String("tls-root-certs", "", "Which TLS root certificates to use: 'webpki' (bundled Mozilla roots), 'native' (system store), or 'all' (both)")
35+
buildCmd.Flags().Bool("use-environment-activation-cache", false, "Use environment activation cache (experimental)")
3736
rootCmd.AddCommand(buildCmd)
3837

3938
carapace.Gen(buildCmd).FlagCompletion(carapace.ActionMap{

completers/common/pixi_completer/cmd/clean.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ func init() {
1818
cleanCmd.Flags().Bool("activation-cache", false, "Only remove the activation cache")
1919
cleanCmd.Flags().Bool("build", false, "Only remove the pixi-build cache")
2020
cleanCmd.Flags().StringP("environment", "e", "", "The environment directory to remove")
21-
cleanCmd.Flags().StringP("manifest-path", "m", "", "The path to pixi.toml, pyproject.toml, or the workspace directory")
2221
rootCmd.AddCommand(cleanCmd)
2322

2423
carapace.Gen(cleanCmd).FlagCompletion(carapace.ActionMap{
25-
"environment": pixi.ActionEnvironments(),
26-
"manifest-path": carapace.ActionFiles(),
24+
"environment": pixi.ActionEnvironments(),
2725
})
2826
}

completers/common/pixi_completer/cmd/clean_cache.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@ var clean_cacheCmd = &cobra.Command{
1414
func init() {
1515
carapace.Gen(clean_cacheCmd).Standalone()
1616

17+
clean_cacheCmd.Flags().Bool("assume-yes", false, "Answer yes to all questions")
1718
clean_cacheCmd.Flags().Bool("build", false, "Clean only the build related cache")
1819
clean_cacheCmd.Flags().Bool("build-backends", false, "Clean only the build backends environments cache")
1920
clean_cacheCmd.Flags().Bool("conda", false, "Clean only the conda related cache")
20-
clean_cacheCmd.Flags().Bool("exec", false, "Clean only exec cache")
21-
clean_cacheCmd.Flags().StringP("manifest-path", "m", "", "The path to pixi.toml, pyproject.toml, or the workspace directory")
21+
clean_cacheCmd.Flags().Bool("exec", false, "Clean only `exec` cache")
2222
clean_cacheCmd.Flags().Bool("mapping", false, "Clean only the mapping cache")
2323
clean_cacheCmd.Flags().Bool("pypi", false, "Clean only the pypi related cache")
2424
clean_cacheCmd.Flags().Bool("repodata", false, "Clean only the repodata cache")
2525
clean_cacheCmd.Flags().BoolP("yes", "y", false, "Answer yes to all questions")
26+
clean_cacheCmd.Flag("assume-yes").Hidden = true
2627
cleanCmd.AddCommand(clean_cacheCmd)
27-
28-
carapace.Gen(clean_cacheCmd).FlagCompletion(carapace.ActionMap{
29-
"manifest-path": carapace.ActionFiles(),
30-
})
3128
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var clean_helpCmd = &cobra.Command{
9+
Use: "help",
10+
Short: "Print this message or the help of the given subcommand(s)",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(clean_helpCmd).Standalone()
16+
17+
cleanCmd.AddCommand(clean_helpCmd)
18+
}

0 commit comments

Comments
 (0)