missing agent command reference #283

Closed
chuckbutler opened this Issue Mar 11, 2015 · 7 comments

Comments

Projects
None yet
4 participants
Collaborator

chuckbutler commented Mar 11, 2015

We have the juju workstation client command reference, however it appears we are missing the agent command listing + help output as a handy reference overview. They're littered throughout the docs presently, and this means searching for new users when they just want (basically) and API listing w/ example inputs/outputs.

  • config-get
  • unit-get
  • relation-get
  • relation-set

If i'm missing any lets get them included here so when we circle back we have a complete listing.

relation-list should be there as well. Basically what is on https://jujucharms.com/docs/authors-hook-environment but also showing sample json outputs.

Owner

marcoceppi commented Mar 11, 2015

You can get all this data already with juju help-tool relation-list which
is how the other commands documentation is created (juju help add-unit as
an eg)

On Wed, Mar 11, 2015 at 12:14 PM Antoni Segura Puimedon <
notifications@github.com> wrote:

relation-list should be there as well. Basically what is on
https://jujucharms.com/docs/authors-hook-environment but also showing
sample json outputs.


Reply to this email directly or view it on GitHub
#283 (comment).

Member

evilnick commented Mar 11, 2015

@chuckbutler it isn't missing, and they aren't littered throughout the docs, they are referenced when they are relevant and included in full on the "How hooks are run" page(https://jujucharms.com/docs/authors-hook-environment). if you want to add examples there, that's fine. I will add a link to the command reference page

@evilnick evilnick closed this Mar 11, 2015

Collaborator

chuckbutler commented Mar 11, 2015

@evilnick I dont think this is very intuitive in terms of users finding them in the docs.

Whats the issue with adding them to the command reference listing under a title of "agent hookenv commands"?

Member

evilnick commented Mar 11, 2015

I will add a link, as I said, to the command reference, but I am not going to list them in full there also because:

  • it may be confusing for users who expect to be able to run them with the Juju commandline
  • more importantly, it is pointless to maintain the same documentation in two places.

I don't think they are hard to find if people read the documentation, and I would be concerned if people were writing hooks without reading the section "How hooks are run", but perhaps that page needs a different/better title? If people are just visiting the docs for a refresher on those items and use the search tool, that page is the first that comes up for a search on "hook tools", though sadly, the search doesn't work very well for docs so things like "config-get" return seemingly random pages.

Personally, I think the amount of information that is being added to docs means we should actually split them into two, which may make search work better and will certainly mean we can have better navigation.

@evilnick I saw the https://jujucharms.com/docs//authors-hook-environment My comment was only that there could be json output examples alongside the plaintext ones.

Member

evilnick commented Mar 11, 2015

@celebdor Thanks, and that's a good suggestion, I opened #284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment