installInstruction method

String installInstruction(
  1. String executableName, {
  2. bool viaOption = false,
  3. String? commandName,
})

One-line installation instruction for this shell: the installCommand, followed by the installLocation as a comment.

Implementation

String installInstruction(
  final String executableName, {
  final bool viaOption = false,
  final String? commandName,
}) {
  final command = installCommand(
    executableName,
    viaOption: viaOption,
    commandName: commandName,
  );
  final location = installLocation;
  return location == null ? command : '$command  # in $location';
}