Skip to content
Back to top
View this page
Edit this page

# xonsh.xoreutils.which

Implements the which xoreutil.

class xonsh.xoreutils.which.AWitchAWitch(option_strings, version=None, dest='==SUPPRESS==', default='==SUPPRESS==', **kwargs)

  The Ducstring, the mother of all ducs.

  format_usage()
  SUPPRESS = '==SUPPRESS=='

xonsh.xoreutils.which.print_alias(arg, stdout, verbose=False)

  Print the alias.

xonsh.xoreutils.which.print_global_object(arg, stdout)

  Print the object.

xonsh.xoreutils.which.print_path(abs_name, from_where, stdout, verbose=False, captured=False)

  Print the name and path of the command.

xonsh.xoreutils.which.which(args, stdin=None, stdout=None, stderr=None, spec=None)

  Checks if each arguments is a xonsh aliases, then if it’s an executable, then finally return an error code equal to the number of misses. If ‘-a’ flag is passed, run both to return both xonsh match and which match.