Project

General

Profile

Feature #2652

Python CLI - Version 2

Added by Andrew Pippin about 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
2012-02-23
Due date:
% Done:

100%

Estimated time:
(Total: 2.00 h)
Story Points:
Sprint:

Description

Several tasks have been identified to enhance the Python CLI for the next release.


Subtasks

Task #2653: Move data package class to libclientClosed

Task #2654: Allow multiple science metadata objectsClosedRoger Dahl

Task #2657: Science Metadata Object definitionClosed

Task #2691: Create d1_certificate_pythonClosedRoger Dahl

Task #2711: Python CLI to use certificate for subject infoClosedRoger Dahl

Task #2467: Allow "-" for input or output filenameRejectedRoger Dahl

Task #2428: Save generated metadataClosed

Task #2374: CLI should allow unambiguous abbreviations of commandsClosed

Task #2373: CLI history should persist beyond a single sessionRejectedRoger Dahl

Task #2806: Use Logging rather than sys.stderr.writeClosed

Task #2692: Merge all the Python testing codeRejectedRoger Dahl


Related issues

Related to Infrastructure - Task #2552: Add "package" command to the CLI Closed 2012-03-30
Related to Infrastructure - Story #2804: CLI, new features, bugfixes Closed

History

#1 Updated by Andrew Pippin about 12 years ago

h2. Design planning for CLI

h4. Example session

% dataone
DataONE Command Line Interface

package create pkg-abc
set format-id=eml://ecoinformatics.org/eml-2.1.0
package scimeta add knb-lter-gce.297.17
set format-id=text/plain
package scidata add INV-GCEM-0705a1
package scidata add INV-GCEM-0705a2
package scidata add INV-GCEM-0705a3
package save
package done
%

h4. New commands

  • create - upload to dataone
  • get __ - get from dataone and load into memory
  • update __ - update object in dataone
  • delete - delete object from dataone

  • new __ - create new package in memory

  • open __ - open new package from disk

  • save __ - save new package to disk

  • clear - clear package in memory and start over

  • add __ [filename] - add the content of pid to package (eventually creating the object on a MN if filename provided)

  • remove __ - (implies removing all associated linkages too)

  • link __ __ -- adds and makes "documents" linkages (implies add)

  • unlink __ __ -- removes linkage

  • show - display package in memory (display everything that is known about the package)

  • show __ - show contents of file (if text)(hex dump if binary?)

  • done - leave package mode

h4. Example command line usage

@dataone package create [...]@
@dataone package delete @
@dataone package update [...]@
@dataone package show @

@dataone -e 'package new pkgid; package add ; ...'@
    or
@dataone -e 'package; new pkgid; add ; ...'@

#2 Updated by Andrew Pippin over 11 years ago

  • Assignee changed from Andrew Pippin to Matthew Jones

Assigning to Matt for future development overview.

#3 Updated by Roger Dahl over 9 years ago

  • Tracker changed from Story to Feature

#4 Updated by Dave Vieglais over 9 years ago

  • Start date set to 2014-10-02
  • Due date set to 2014-10-02
  • Target version set to Maintenance Backlog

#5 Updated by Dave Vieglais over 9 years ago

  • Due date changed from 2014-10-02 to 2015-01-13
  • Category deleted (d1_client_cli)
  • Assignee changed from Matthew Jones to Mark Flynn
  • Target version changed from Maintenance Backlog to CCI-2.0.0
  • Project changed from Infrastructure to Python CLI

#6 Updated by Dave Vieglais almost 9 years ago

  • Target version changed from CCI-2.0.0 to CLI_2.0.0

#7 Updated by Roger Dahl about 8 years ago

  • Assignee changed from Mark Flynn to Roger Dahl

#8 Updated by Dave Vieglais over 6 years ago

  • % Done changed from 0 to 30
  • Status changed from New to In Progress

PBI status auto updated to In Progress because at least one task wasn't on New status

#9 Updated by Dave Vieglais over 6 years ago

  • % Done changed from 30 to 100
  • Status changed from In Progress to Closed

PBI status auto updated to Closed because all tasks were closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)