Skip to content

Nitpick: date format, but format duration? #9891

Closed

Description

@NotTheDr01ds

Describe the bug

Just noticing that the new format duration command has the opposite structure as the existing date format command.

How to reproduce

Honestly, I can't at the moment since I don't have the date format command yet. I'm using a nightly, but since it's in nu-cmd-extra and it doesn't seem like nightlies include that.

But that's beside the point ;-)

Expected behavior

Probably should have consistent naming here? If format duration is the first of the format subcommands, then perhaps date format should be renamed to format date?

Alternatively, duration format?

Screenshots

No response

Configuration

N/A

Additional context

No response

Activity

  1. added
    status:needs-triage
    on Aug 1, 2023
  2. added
    category:inconsistent-behavior
    notes:breaking-changes
    and removed
    status:needs-triage
    on Aug 1, 2023
  3. sholderbach commented on Aug 1, 2023

    @sholderbach
    Member

    Agreed this should be one accessible family of commands. After adding format duration we also discussed that the command and its format filesize sibling should probably be available in the standard distro of nushell.

  4. NotTheDr01ds commented on Aug 1, 2023

    @NotTheDr01ds
    ContributorAuthor

    Ah yes, I missed format filesize.

  5. fdncred commented on Aug 1, 2023

    @fdncred
    Contributor

    I agree too. Seems like we may need a few format blah commands.

  6. added a commit that references this issue on Aug 3, 2023
    14bf25d
  7. added a commit that references this issue on Aug 3, 2023
    867ef0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:inconsistent-behaviornotes:breaking-changes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions