Giter Club home page Giter Club logo

cnct's Introduction

connect CLI experiments

a "content-first" posit Connect CLI

install

cargo install --git https://github.com/edavidaja/cnct.git

what?

rsconnect-python features a number of top-level administrative commands:

❯ rsconnect --help
Commands:
  add             Define a nickname for a Posit Connect, Posit Cloud, or
                  shinyapps.io server and credential.
  bootstrap       Create an initial admin user to bootstrap a Connect
                  instance.
  content         Interact with Posit Connect's content API.
  deploy          Deploy content to Posit Connect, Posit Cloud, or...
  details         Show details about a Posit Connect server.
  info            Show saved information about the specified deployment.
  list            List the known Posit Connect servers.
  remove          Remove the information about a Posit Connect server.
  version         Show the version of the rsconnect-python package.
  write-manifest  Create a manifest.json file for later deployment.

Since the command line interface is how we expect many publishers to interact with Connect, we should shift to a content-first CLI:

❯ ./cnct --help  

Usage: cnct <COMMAND>

Commands:
  deploy     Deploy content
  logs       Get logs for deployed content
  remote     Configure deployment target
  download   Download bundle from Connect
  jumpstart  Download example content from Connect
  help       Print this message or the help of the given subcommand(s)

administrative commands mostly concern interacting with a remote connect server, and so are moved to the remote subcommand:

❯ ./cnct remote
Configure deployment target

Usage: cnct remote
       cnct remote <COMMAND>

Commands:
  list       
  add        
  remove     
  bootstrap  
  info       
  help       Print this message or the help of the given subcommand(s)

top-level commands should return information about the most recent deployment when appropriate:

cnct/target/debug on  main [!] 
❯ ./cnct logs
Get logs for deployed content

Usage: cnct logs [OPTIONS]

Options:
  -t, --tail  
  -h, --help  Print help information

cnct's People

Contributors

edavidaja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.