Mason Docs

Mason CLI Autocomplete

The Mason CLI provides autocomplete shortcuts, to make your development easier

Prerequisites

Steps

  1. Verify the mason CLI is installed

    $mason -V
    Mason CLI v1.7
    Copyright (C) 2019 Mason America (https://bymason.com)
    License Apache 2.0 <https://www.apache.org/licenses/LICENSE-2.0>
    
  2. Run the following command to get autocomplete support for mason commands in bash.

    echo -e 'eval "$(_MASON_COMPLETE=source mason)"\n' >> .bashrc
    
  3. Autocomplete works by guessing which command you're referring to, given a subset of the full command

    $ mason reg
    Usage: mason reg [OPTIONS] COMMAND [ARGS]...
    
    Register artifacts to the Mason Platform.
    
    Full docs: https://docs.bymason.com/mason-cli/#mason-register
    
    Options:
    -y, --yes, --assume-yes  Don't require confirmation.
    --dry-run                Show planned operations, but don't execute them.
    -h, --help               Show this message and exit.
    
    Commands:
    apk      Register APK artifacts.
    config   Register config artifacts.
    media    Register media artifacts.
    project  Register whole projects.
    

Support

Next steps