Skip to content

feat(occ): print storage values human-friendly#48952

Open
solracsf wants to merge 1 commit intomasterfrom
printOccHumanFriendly
Open

feat(occ): print storage values human-friendly#48952
solracsf wants to merge 1 commit intomasterfrom
printOccHumanFriendly

Conversation

@solracsf
Copy link
Member

@solracsf solracsf commented Oct 28, 2024

Summary

Values are now printed humand-friendly if --human option is passed.

Before

# occ user:info username
  - user_id: username
  - display_name: username
  - email: username@email.com
  - cloud_id: username@my.cloud.com
  - enabled: true
  - groups:
    - Users
  - quota: 20 GB
  - storage:
    - free: 2002327231
    - used: 19472509249
    - total: 21474836480
    - relative: 90.68
    - quota: 21474836480
  - last_seen: 2024-10-15T11:31:16+00:00
  - user_directory: /var/www/data/username
  - backend: Database

After

# occ user:info username --human
  - user_id: username
  - display_name: username
  - email: username@email.com
  - cloud_id: username@my.cloud.com
  - enabled: true
  - groups:
    - Users
  - quota: 20 GB
  - storage:
    - free: 1.9 GB
    - used: 18.1 GB
    - total: 20 GB
    - relative: 90.68%
    - quota: 20 GB
  - last_seen: 2024-10-15T11:31:16+00:00
  - user_directory: /var/www/data/username
  - backend: Database

@solracsf solracsf added 3. to review Waiting for reviews feature: occ labels Oct 28, 2024
@solracsf solracsf added this to the Nextcloud 31 milestone Oct 28, 2024
@solracsf solracsf force-pushed the printOccHumanFriendly branch 2 times, most recently from e42eb58 to 476e85f Compare October 28, 2024 18:02
@susnux susnux requested review from artonge and come-nc October 29, 2024 09:18
susnux

This comment was marked as resolved.

provokateurin

This comment was marked as resolved.

@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Oct 29, 2024
@solracsf solracsf force-pushed the printOccHumanFriendly branch from 9368e94 to 1628bd2 Compare October 30, 2024 07:56
@solracsf solracsf added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 30, 2024
@solracsf

This comment was marked as resolved.

@solracsf solracsf force-pushed the printOccHumanFriendly branch from 1628bd2 to 0ee9f91 Compare October 30, 2024 08:06
@solracsf solracsf force-pushed the printOccHumanFriendly branch from 0ee9f91 to 3fb55a4 Compare October 30, 2024 09:30
@provokateurin

This comment was marked as resolved.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf solracsf force-pushed the printOccHumanFriendly branch from 3fb55a4 to 24636ca Compare October 31, 2024 06:30
@solracsf solracsf changed the title enh(occ): print storage values human-friendly feat(occ): print storage values human-friendly Oct 31, 2024
@solracsf solracsf enabled auto-merge October 31, 2024 06:32
@nextcloud nextcloud deleted a comment from solracsf Oct 31, 2024
@blizzz blizzz mentioned this pull request Jan 8, 2025
This was referenced Jan 14, 2025
This was referenced Jan 21, 2025
@blizzz blizzz mentioned this pull request Jan 29, 2025
1 task
@blizzz blizzz modified the milestones: Nextcloud 31, Nextcloud 32 Jan 29, 2025
This was referenced Aug 22, 2025
This was referenced Sep 2, 2025
This was referenced Sep 25, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
This was referenced Jan 7, 2026
This was referenced Jan 14, 2026
This was referenced Jan 29, 2026
This was referenced Feb 11, 2026
@blizzz blizzz modified the milestones: Nextcloud 33, Nextcloud 34 Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants