siedentop bce6f5a3e6
Uniq: --count flag to count occurences (#2017)
* uniq: Add counting option (WIP!)

Usage:

fetch https://raw.githubusercontent.com/timbray/topfew/master/test/data/access-1k | lines | wrap item | uniq | sort-by count | last 10

* uniq: Add first test

* uniq: Re-enable the non-counting variant.

* uniq: Also handle primitive lines.

* uniq: Update documentation

* uniq: Final comment about error handling. Let's get some feedback

* uniq: Address review comments.

Not happy with the way I create a TypeError. There must be a cleaner
way. Anyway, good for shipping.

* uniq: Use Labeled_error as suggested by jturner in chat.

* uniq: Return error directly.

Co-authored-by: Christoph Siedentop <christoph@siedentop.name>
2020-06-21 12:22:06 +12:00
..
2020-05-24 13:42:20 -04:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2019-10-08 18:32:42 +11:00
2020-03-14 06:23:41 +13:00
2020-06-03 12:27:54 -04:00
2020-03-14 06:23:41 +13:00
2019-10-01 11:21:56 -03:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2019-10-01 06:14:56 -04:00
2020-03-14 06:23:41 +13:00
2019-12-02 11:02:59 -08:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2019-10-03 08:18:51 -04:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2019-10-07 02:08:20 +08:00
2019-11-14 16:59:39 -05:00
2020-03-14 06:23:41 +13:00
2019-12-02 11:02:58 -08:00
2020-03-14 06:23:41 +13:00
2020-05-24 02:02:44 -05:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00
2020-05-18 05:37:15 +12:00
2019-12-15 13:56:26 +01:00
2020-06-19 20:54:25 -05:00
2020-06-15 09:54:30 +12:00
2020-03-14 06:23:41 +13:00
2020-03-14 06:23:41 +13:00

How do I get started?

Pick any command from the checklist and write a comment acknowledging you started work.

Instructions for documenting a Nu command of your choosing

Name the file after the command, like so:

command.md

Example: If you want to add documentation for the Nu command enter, create a file named enter.md, write documentation, save it at /docs/commands/[your_command_picked].md as and create your pull request.

What kind of documentation should I write?

Anything you want that you believe it best documents the command and the way you would like to see it. Here are some of our ideas of documentation we would love to see (feel free to add yours):

  • Examples of using the command (max creativity welcomed!)
  • Description of the command.
  • Command usage.

Anything else?

Of course! (These are drafts) so feel free to leave feedback and suggestions in the same file.

Happy Documenting.