Class CliConfig

    • Constructor Detail

      • CliConfig

        public CliConfig()
    • Method Detail

      • createAnsi

        @Derived
        public Ansi createAnsi​(Optional<String> defaultColor)
        Create an Ansi object appropriate for the current output. First respect the user's preferences, if set. Next, respect any default provided by the caller. (This is used by buckd to tell the daemon about the client's terminal.) Finally, allow the Ansi class to autodetect whether the current output is a tty.
        Parameters:
        defaultColor - Default value provided by the caller (e.g. the client of buckd)
      • getJsonAttributeFormat

        @Derived
        public JsonAttributeFormat getJsonAttributeFormat()
        When printing out json representation of targets, what formatting should be applied
      • getWarnOnConfigFileOverrides

        @Lazy
        public boolean getWarnOnConfigFileOverrides()
      • getWarnOnConfigFileOverridesIgnoredFiles

        @Lazy
        public com.google.common.collect.ImmutableSet<Path> getWarnOnConfigFileOverridesIgnoredFiles()
      • getFlushEventsBeforeExit

        @Lazy
        public boolean getFlushEventsBeforeExit()
      • getMessageOfTheDay

        @Lazy
        public com.google.common.collect.ImmutableList<String> getMessageOfTheDay()
      • getRelativizeTargetsToWorkingDirectory

        @Lazy
        public boolean getRelativizeTargetsToWorkingDirectory()
        Returns:
        whether relative targets given on the command line should be relativized to the user's working dir
      • getEnableShowOutputWarning

        @Lazy
        public boolean getEnableShowOutputWarning()
      • getEnableFailingCommandTruncation

        @Lazy
        public boolean getEnableFailingCommandTruncation()
        Returns:
        whether truncation of failing executed command is enabled. Defaults to true.