Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List occ commands alphabetically both normally and in the help output #29309

Closed
settermjd opened this issue Oct 20, 2017 · 5 comments
Closed
Labels

Comments

@settermjd
Copy link
Contributor

When displaying a list of occ commands, for greatest readability and efficiency, they should be listed alphabetically. Currently, when you list them, you will get output similar to:

Did you mean one of these?                                      
      user:resetpassword                                          
      user:list-groups                                            
      user:lastseen                                               
      user:inactive                                               
      user:disable                                                
      user:setting                                                
      user:delete                                                 
      user:enable                                                 
      user:report                                                 
      user:list                                                   
      user:sync                                                   
      user:add                                                    
      maintenance:singleuser

The commands would be easier to read if they are listed alphabetically, such as:

Did you mean one of these?                                      
      maintenance:singleuser
      user:add                             
      user:delete                     
      user:disable                                                
      user:enable                    
      user:inactive                                           
      user:lastseen                                          
      user:list                                                   
      user:list-groups             
      user:report                                                 
      user:resetpassword                               
      user:setting                                                
      user:sync                        

Steps to reproduce

  1. In the case above, run occ user:link, which displays the currently available list of commands

Expected behaviour

That the listed commands would be listed in alphabetical order, as listed above.

Actual behaviour

The listed commands display in a non-alphabetical order.

Server configuration

Operating system: macOS 10.13.

Web server: Apache 2

Database: MariaDB

PHP version: 7.1

ownCloud version: 10.0.3

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: source

@individual-it
Copy link
Member

should come with Symphony 3.3 see symfony/symfony#10893 and symfony/symfony#19887

@settermjd
Copy link
Contributor Author

Thanks for the clarification @individual-it

@individual-it
Copy link
Member

should we close this?

@settermjd
Copy link
Contributor Author

Sure.

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants