Pārlūkot izejas kodu

Fix deploy on travis

pull/443/head
Guillaume Vincent pirms 5 gadiem
vecāks
revīzija
f8cd829ab5
3 mainītis faili ar 70 papildinājumiem un 9 dzēšanām
  1. +3
    -1
      .travis.yml
  2. +55
    -0
      cli/README.md
  3. +12
    -8
      cli/setup.py

+ 3
- 1
.travis.yml Parādīt failu

@@ -167,7 +167,9 @@ jobs:
- sudo curl https://raw.githubusercontent.com/projectatomic/registries/master/registries.fedora -o /etc/containers/registries.conf
- cd containers
deploy:
- ./deploy
provider: script
script: bash ./deploy

stages:
- name: test
- name: deploy

+ 55
- 0
cli/README.md Parādīt failu

@@ -0,0 +1,55 @@
# LessPass command-line interface (CLI)

## Install

python3 -m pip install --user lesspass

## Usage

lesspass SITE [LOGIN] [MASTER_PASSWORD] [OPTIONS]

Arguments:

SITE site used in the password generation (required)
LOGIN login used in the password generation
default to '' if not provided
MASTER_PASSWORD master password used in password generation
default to LESSPASS_MASTER_PASSWORD env variable or prompt

Options:

-l, --lowercase add lowercase in password
-u, --uppercase add uppercase in password
-d, --digits add digits in password
-s, --symbols add symbols in password
-L, --length int (default 16, max 35)
-C, --counter int (default 1)
-p, --prompt interactively prompt SITE and LOGIN (prevent leak to shell history)
--no-lowercase remove lowercase from password
--no-uppercase remove uppercase from password
--no-digits remove digits from password
--no-symbols remove symbols from password
-c, --clipboard copy generated password to clipboard rather than displaying it.
Need pbcopy (OSX), xsel or xclip (Linux) or clip (Windows).
-v, --version lesspass version number

## Examples
### no symbols

lesspass site login masterpassword --no-symbols

### no symbols shortcut

lesspass site login masterpassword -lud

### only digits and length of 8

lesspass site login masterpassword -d -L8

### master password in env variable

LESSPASS_MASTER_PASSWORD="masterpassword" lesspass site login

## License

This project is licensed under the terms of the GNU GPLv3.

+ 12
- 8
cli/setup.py Parādīt failu

@@ -1,24 +1,28 @@
import setuptools
from os import path

from lesspass.version import __version__
from lesspass import long_description

this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()

setuptools.setup(
name='lesspass',
name="lesspass",
version=__version__,
packages=['lesspass'],
author='Guillaume Vincent',
author_email='contact@lesspass.com',
description='LessPass stateless password generator',
packages=["lesspass"],
author="Guillaume Vincent",
author_email="contact@lesspass.com",
description="LessPass stateless password generator",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=[],
entry_points="""
[console_scripts]
lesspass=lesspass.core:main
""",
url='https://github.com/lesspass/lesspass',
license='GPL-3.0',
url="https://github.com/lesspass/lesspass",
license="GPL-3.0",
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",


Notiek ielāde…
Atcelt
Saglabāt