Comp-490-TR-Afternoon-Group-Four / thefuck

Magnificent app which corrects your previous console command.
MIT License
0 stars 0 forks source link

brew cask typo don't get correctly fixed #10

Open RyanCallahan312 opened 3 years ago

RyanCallahan312 commented 3 years ago

Original Issue: https://github.com/nvbn/thefuck/issues/1066

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.29 using Python 3.8.0 and Fish Shell 3.0.2 Your system (Debian 7, ArchLinux, Windows, etc.):

macOS Catalina v 10.15.3 How to reproduce the bug:

thefuck brew cas install owncloud Expected recommendation(s):

brew cask install owncloud Actual recommendation(s):

brew create install owncloud brew list install owncloud brew update install owncloud The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

[2.6.0|3.8.0|1.39.0|v12.14.1] ⚡️ 81.605s ‹~/W/k/myr-web-client› ‹development!+12› »»»» env THEFUCK_DEBUG=true thefuck brew cas install owncloud | pbcopy DEBUG: Run with settings: {'alter_history': True, 'debug': True, 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'}, 'exclude_rules': [], 'history_limit': None, 'instant_mode': False, 'no_colors': False, 'num_close_matches': 3, 'priority': {'git_branch_list': 999}, 'repeat': False, 'require_confirmation': True, 'rules': [], 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'], 'user_dir': PosixPath('/Users/scorphus/.config/thefuck'), 'wait_command': 3, 'wait_slow_command': 15} DEBUG: Received output: Error: Unknown command: cas

DEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000331 DEBUG: Importing rule: ag_literal; took: 0:00:00.000519 DEBUG: Importing rule: apt_get; took: 0:00:00.001316 DEBUG: Importing rule: apt_get_search; took: 0:00:00.000458 DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000945 DEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000533 DEBUG: Importing rule: apt_upgrade; took: 0:00:00.000485 DEBUG: Importing rule: aws_cli; took: 0:00:00.000510 DEBUG: Importing rule: az_cli; took: 0:00:00.000508 DEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.000993 DEBUG: Importing rule: brew_install; took: 0:00:00.000191 DEBUG: Importing rule: brew_link; took: 0:00:00.000346 DEBUG: Importing rule: brew_reinstall; took: 0:00:00.000685 DEBUG: Importing rule: brew_uninstall; took: 0:00:00.000370 DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000311 DEBUG: Importing rule: brew_update_formula; took: 0:00:00.000420 DEBUG: Importing rule: cargo; took: 0:00:00.000250 DEBUG: Importing rule: cargo_no_command; took: 0:00:00.001030 DEBUG: Importing rule: cat_dir; took: 0:00:00.001152 DEBUG: Importing rule: cd_correction; took: 0:00:00.002478 DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000550 DEBUG: Importing rule: cd_parent; took: 0:00:00.000186 DEBUG: Importing rule: chmod_x; took: 0:00:00.000182 DEBUG: Importing rule: choco_install; took: 0:00:00.001071 DEBUG: Importing rule: composer_not_command; took: 0:00:00.000441 DEBUG: Importing rule: cp_create_destination; took: 0:00:00.000382 DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000522 DEBUG: Importing rule: cpp11; took: 0:00:00.000369 DEBUG: Importing rule: dirty_untar; took: 0:00:00.001876 DEBUG: Importing rule: dirty_unzip; took: 0:00:00.004081 DEBUG: Importing rule: django_south_ghost; took: 0:00:00.000220 DEBUG: Importing rule: django_south_merge; took: 0:00:00.000152 DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.001295 DEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.000420 DEBUG: Importing rule: docker_login; took: 0:00:00.000374 DEBUG: Importing rule: docker_not_command; took: 0:00:00.001328 DEBUG: Importing rule: dry; took: 0:00:00.000277 DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000755 DEBUG: Importing rule: fix_alt_space; took: 0:00:00.000468 DEBUG: Importing rule: fix_file; took: 0:00:00.002657 DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.001053 DEBUG: Importing rule: git_add; took: 0:00:00.000807 DEBUG: Importing rule: git_add_force; took: 0:00:00.000344 DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000322 DEBUG: Importing rule: git_branch_delete; took: 0:00:00.000321 DEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.000358 DEBUG: Importing rule: git_branch_exists; took: 0:00:00.000634 DEBUG: Importing rule: git_branch_list; took: 0:00:00.000447 DEBUG: Importing rule: git_checkout; took: 0:00:00.000413 DEBUG: Importing rule: git_commit_amend; took: 0:00:00.000418 DEBUG: Importing rule: git_commit_reset; took: 0:00:00.000494 DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000538 DEBUG: Importing rule: git_diff_staged; took: 0:00:00.000520 DEBUG: Importing rule: git_fix_stash; took: 0:00:00.000498 DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000419 DEBUG: Importing rule: git_help_aliased; took: 0:00:00.000409 DEBUG: Importing rule: git_merge; took: 0:00:00.000569 DEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000622 DEBUG: Importing rule: git_not_command; took: 0:00:00.000657 DEBUG: Importing rule: git_pull; took: 0:00:00.000621 DEBUG: Importing rule: git_pull_clone; took: 0:00:00.000814 DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000699 DEBUG: Importing rule: git_push; took: 0:00:00.000442 DEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000340 DEBUG: Importing rule: git_push_force; took: 0:00:00.000340 DEBUG: Importing rule: git_push_pull; took: 0:00:00.000414 DEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000418 DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000405 DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000260 DEBUG: Importing rule: git_remote_delete; took: 0:00:00.000346 DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000325 DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000404 DEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000442 DEBUG: Importing rule: git_rm_staged; took: 0:00:00.000399 DEBUG: Importing rule: git_stash; took: 0:00:00.000342 DEBUG: Importing rule: git_stash_pop; took: 0:00:00.000330 DEBUG: Importing rule: git_tag_force; took: 0:00:00.000353 DEBUG: Importing rule: git_two_dashes; took: 0:00:00.000517 DEBUG: Importing rule: go_run; took: 0:00:00.000494 DEBUG: Importing rule: go_unknown_command; took: 0:00:00.000865 DEBUG: Importing rule: gradle_no_task; took: 0:00:00.000734 DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000431 DEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000531 DEBUG: Importing rule: grep_recursive; took: 0:00:00.000574 DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.002518 DEBUG: Importing rule: gulp_not_task; took: 0:00:00.000680 DEBUG: Importing rule: has_exists_script; took: 0:00:00.000621 DEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000533 DEBUG: Importing rule: heroku_not_command; took: 0:00:00.000381 DEBUG: Importing rule: history; took: 0:00:00.000151 DEBUG: Importing rule: hostscli; took: 0:00:00.000513 DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000456 DEBUG: Importing rule: java; took: 0:00:00.000397 DEBUG: Importing rule: javac; took: 0:00:00.000367 DEBUG: Importing rule: lein_not_task; took: 0:00:00.000514 DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000387 DEBUG: Importing rule: ln_s_order; took: 0:00:00.000334 DEBUG: Importing rule: long_form_help; took: 0:00:00.000184 DEBUG: Importing rule: ls_all; took: 0:00:00.000345 DEBUG: Importing rule: ls_lah; took: 0:00:00.000355 DEBUG: Importing rule: man; took: 0:00:00.000364 DEBUG: Importing rule: man_no_space; took: 0:00:00.000156 DEBUG: Importing rule: mercurial; took: 0:00:00.000333 DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000161 DEBUG: Importing rule: mkdir_p; took: 0:00:00.000389 DEBUG: Importing rule: mvn_no_command; took: 0:00:00.000335 DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000338 DEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.000890 DEBUG: Importing rule: no_command; took: 0:00:00.000385 DEBUG: Importing rule: no_such_file; took: 0:00:00.000160 DEBUG: Importing rule: npm_missing_script; took: 0:00:00.000664 DEBUG: Importing rule: npm_run_script; took: 0:00:00.000573 DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000771 DEBUG: Importing rule: open; took: 0:00:00.000603 DEBUG: Importing rule: pacman; took: 0:00:00.002476 DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000391 DEBUG: Importing rule: path_from_history; took: 0:00:00.000426 DEBUG: Importing rule: php_s; took: 0:00:00.000521 DEBUG: Importing rule: pip_install; took: 0:00:00.000767 DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000855 DEBUG: Importing rule: port_already_in_use; took: 0:00:00.000777 DEBUG: Importing rule: prove_recursively; took: 0:00:00.000675 DEBUG: Importing rule: pyenv_no_such_command; took: 0:00:00.001328 DEBUG: Importing rule: python_command; took: 0:00:00.000839 DEBUG: Importing rule: python_execute; took: 0:00:00.000516 DEBUG: Importing rule: quotation_marks; took: 0:00:00.000152 DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000452 DEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000162 DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000142 DEBUG: Importing rule: rm_dir; took: 0:00:00.000417 DEBUG: Importing rule: rm_root; took: 0:00:00.000429 DEBUG: Importing rule: scm_correction; took: 0:00:00.000411 DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000487 DEBUG: Importing rule: sl_ls; took: 0:00:00.000200 DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000410 DEBUG: Importing rule: sudo; took: 0:00:00.000190 DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000400 DEBUG: Importing rule: switch_lang; took: 0:00:00.000271 DEBUG: Importing rule: systemctl; took: 0:00:00.000588 DEBUG: Importing rule: terraform_init; took: 0:00:00.000535 DEBUG: Importing rule: test.py; took: 0:00:00.000221 DEBUG: Importing rule: tmux; took: 0:00:00.000701 DEBUG: Importing rule: touch; took: 0:00:00.000661 DEBUG: Importing rule: tsuru_login; took: 0:00:00.000601 DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000499 DEBUG: Importing rule: unknown_command; took: 0:00:00.000185 DEBUG: Importing rule: unsudo; took: 0:00:00.000159 DEBUG: Importing rule: vagrant_up; took: 0:00:00.000424 DEBUG: Importing rule: whois; took: 0:00:00.000757 DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000452 DEBUG: Importing rule: yarn_alias; took: 0:00:00.000342 DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000954 DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000524 DEBUG: Importing rule: yarn_help; took: 0:00:00.000385 DEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.001075 DEBUG: Trying rule: path_from_history; took: 0:00:00.000492 DEBUG: Trying rule: dry; took: 0:00:00.000071 DEBUG: Trying rule: git_stash_pop; took: 0:00:00.000019 DEBUG: Trying rule: test.py; took: 0:00:00.000002 DEBUG: Trying rule: git_branch_list; took: 0:00:00.000011 DEBUG: Trying rule: adb_unknown_command; took: 0:00:00.000011 DEBUG: Trying rule: ag_literal; took: 0:00:00.000011 DEBUG: Trying rule: aws_cli; took: 0:00:00.000010 DEBUG: Trying rule: az_cli; took: 0:00:00.000010 DEBUG: Trying rule: brew_cask_dependency; took: 0:00:00.000012 DEBUG: Trying rule: brew_install; took: 0:00:00.000002 DEBUG: Trying rule: brew_link; took: 0:00:00.000013 DEBUG: Trying rule: brew_reinstall; took: 0:00:00.000011 DEBUG: Trying rule: brew_uninstall; took: 0:00:00.000010 DEBUG: Trying rule: brew_unknown_command; took: 0:00:00.028590 brew create install owncloud [enter/edit/↑/↓/ctrl+c] Aborted DEBUG: Total took: 0:00:06.253522 If the bug only appears with a specific application, the output of that application and its version:

Error: Unknown command: cas

Homebrew 2.2.10-44-gb9aa76a