Logo
Explore Help
Sign In
admin/brew
1
0
Fork 0
You've already forked brew
Code Issues Packages Projects Releases 6 Wiki Activity
brew/Library/Homebrew/cmd/unalias.rb

26 lines
435 B
Ruby
Raw Normal View History

Import `brew alias` and `brew unalias` commands Import these from the homebrew/aliases tap and deprecate that tap. This required a little messing around with class/module/constant names to get `brew tests` and `brew typecheck` to play nicely. I added also added Sorbet type signatures and integration tests.
2025-02-07 14:31:50 +00:00
# typed: strict
# frozen_string_literal: true
require "abstract_command"
require "aliases/aliases"
module Homebrew
module Cmd
class Unalias < AbstractCommand
cmd_args do
description <<~EOS
Remove aliases.
EOS
Manpage: source wording & formatting fixes
2025-06-03 13:01:49 -04:00
Import `brew alias` and `brew unalias` commands Import these from the homebrew/aliases tap and deprecate that tap. This required a little messing around with class/module/constant names to get `brew tests` and `brew typecheck` to play nicely. I added also added Sorbet type signatures and integration tests.
2025-02-07 14:31:50 +00:00
named_args :alias, min: 1
end
sig { override.void }
def run
Aliases.init
args.named.each { |a| Aliases.remove a }
end
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 805ms Template: 10ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API