Ejemplo n.º 1
0
def push_metadata(snap_file, force):
    """Push metadata from <snap-file> to the store.

    If --force is given, it will force the local metadata into the Store,
    ignoring any possible conflict.

    \b
    Examples:
        snapcraft push-metadata my-snap_0.1_amd64.snap
        snapcraft push-metadata my-snap_0.1_amd64.snap --force
    """
    click.echo('Pushing metadata from {}'.format(os.path.basename(snap_file)))
    snapcraft.push_metadata(snap_file, force)
Ejemplo n.º 2
0
def push_metadata(snap_file, force):
    """Push metadata from <snap-file> to the store.

    If --force is given, it will force the local metadata into the Store,
    ignoring any possible conflict.

    \b
    Examples:
        snapcraft push-metadata my-snap_0.1_amd64.snap
        snapcraft push-metadata my-snap_0.1_amd64.snap --force
    """
    click.echo("Pushing metadata from {}".format(os.path.basename(snap_file)))
    snapcraft.push_metadata(snap_file, force)
Ejemplo n.º 3
0
def push_metadata(snap_file, force):
    """Push metadata from <snap-file> to the store.

    The following information will be retrieved from <snap-file> and used
    to update the store:

    \b
    - summary
    - description
    - icon

    If --force is given, it will force the local metadata into the Store,
    ignoring any possible conflict.

    \b
    Examples:
        snapcraft push-metadata my-snap_0.1_amd64.snap
        snapcraft push-metadata my-snap_0.1_amd64.snap --force
    """
    click.echo("Pushing metadata from {!r}".format(os.path.basename(snap_file)))
    snapcraft.push_metadata(snap_file, force)