Comments (10)
I also think delegating calls from mix hex <command> [arguments...]
to mix hex.<command> [arguments...]
would be useful for newcomers as well, as everything would be available under the hex
command. This would, of course, be backwards compatible with the current tasks (as it's really just calling them).
e.g. mix hex.info
-> mix hex info
or mix hex.owner add [arguments...]
-> mix hex owner add [arguments...]
from hex.
I think delegating is confusing. I know the goal is to help on typos and newcomers, but then people write tutorials, some using one syntax, some use others, and that ends up causing a lot of confusion. Plus, it would only work with hex, and not other tasks, causing even more confusion.
We are going to support mix help --search hex
on Elixir v1.0, mix hex
could simply invoke it.
from hex.
@josevalim Now that I think about it, that would get very confusing in many ways 😕
Maybe we could output something like this for mix hex
:
Hex is a package manager for the Erlang ecosystem. This is
a basic help message containing pointers to more information.
Usage:
mix hex (this command)
mix hex.command [arguments...] [options...]
Tasks:
>output from mix help --search hex<
Further information can be found here: https://hex.pm/docs/tasks
from hex.
I don't like the idea of having a task solely for documentation. We could isntead rename hex.info
to hex
and delegate to elixir-lang/elixir#2807.
from hex.
Would something like this work? https://gist.github.com/JamesS237/e3ad837a8e052443f645
from hex.
Looks good
from hex.
What should we do for Elixir versions older than v1.1.0? (regarding mix help --search PATTERN
support)
from hex.
We don't call it for pre 1.1.0
from hex.
Should we simply call Mix.Task.run("help", ["--search", "hex."])
in the task if the version is >v1.1.0?
from hex.
Closed in #88
from hex.
Related Issues (20)
- Release canditate version resolution incorrect after two digits HOT 3
- Retire a package completely? HOT 3
- Full remove a package from hex.pm HOT 2
- [feature request] Sort `mix hex.outdated` output by status in default output HOT 4
- rebar3_auto - the package in HEX contains module which does not exist in the rebar3_auto repository HOT 1
- Error: Lock is missing HOT 2
- Bundled CA certs are not working now
- Fail to load function 'Elixir.Hex.Netrc.Cache':fetch/1: op make_fun2 u: on Erlang/OTP 27 rc.1
- Publish New Release for Updated CA-Bundle HOT 4
- Bug on dependency resolution for package published on 2/29 HOT 1
- Internal server error when attempting to publish package HOT 1
- mix hex.outdated --ignore <lib> HOT 2
- How to generate a fingerprint for public_key? HOT 5
- Suggesstion: Show readme file content on package page HOT 1
- Build .hex/cache.ets file offline for secure build applications HOT 6
- hex dependency resolution shows order dependent behaviour? HOT 1
- Crash during Mix.install([:jason]) HOT 4
- Installing github dependencies broken on main HOT 5
- Could not install Rebar because Mix could not download metadata HOT 1
- Dependency Resolution behaves differently under OTP-26 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hex.